/* ==========================================================================
   FUM App — app-style theme for FUM Trend Analytics
   Designed by Ozonewebs
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--fum-accent: #2f6bff;
	--fum-up: #16c784;
	--fum-down: #ea3943;
	--fum-warn: #f5a524;

	--font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	--r-sm: 10px;
	--r: 14px;
	--r-lg: 20px;
	--r-xl: 28px;

	--header-h: 64px;
	--tab-h: 64px;
	--safe-b: env(safe-area-inset-bottom, 0px);
	--safe-t: env(safe-area-inset-top, 0px);
	--gutter: 16px;
	--maxw: 1200px;
	--ease: cubic-bezier(.2, .8, .2, 1);
}

:root,
[data-theme="dark"] {
	color-scheme: dark;
	--bg: #0a0f1c;
	--bg-2: #0d1424;
	--surface: #111a2d;
	--surface-2: #17213a;
	--surface-3: #1e2a47;
	--line: rgba(148, 163, 184, .14);
	--line-2: rgba(148, 163, 184, .24);
	--text: #e6ecf7;
	--text-2: #b5c0d4;
	--muted: #8190a8;
	--shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px -12px rgba(0, 0, 0, .6);
	--shadow-lg: 0 24px 64px -16px rgba(0, 0, 0, .7);
	--glass: rgba(10, 15, 28, .78);
	--accent-soft: color-mix(in srgb, var(--fum-accent) 16%, transparent);
	--up-soft: color-mix(in srgb, var(--fum-up) 15%, transparent);
	--down-soft: color-mix(in srgb, var(--fum-down) 15%, transparent);
}

[data-theme="light"] {
	color-scheme: light;
	--bg: #f3f5fa;
	--bg-2: #eaeef6;
	--surface: #ffffff;
	--surface-2: #f5f7fb;
	--surface-3: #eef1f7;
	--line: rgba(15, 23, 42, .09);
	--line-2: rgba(15, 23, 42, .16);
	--text: #0d1526;
	--text-2: #34405a;
	--muted: #66728a;
	--shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -12px rgba(15, 23, 42, .14);
	--shadow-lg: 0 24px 60px -18px rgba(15, 23, 42, .28);
	--glass: rgba(255, 255, 255, .82);
	--accent-soft: color-mix(in srgb, var(--fum-accent) 10%, transparent);
	--up-soft: color-mix(in srgb, var(--fum-up) 12%, transparent);
	--down-soft: color-mix(in srgb, var(--fum-down) 12%, transparent);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 12px);
	background: var(--bg);
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-tap-highlight-color: transparent;
	overflow-x: hidden;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

body.fum-lock { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; }
img { border-style: none; }

a { color: var(--fum-accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

button { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
	line-height: 1.2;
	letter-spacing: -.02em;
	margin: 0 0 .5em;
	font-weight: 800;
	color: var(--text);
}

p { margin: 0 0 1em; }

:focus-visible {
	outline: 2px solid var(--fum-accent);
	outline-offset: 2px;
	border-radius: 6px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed !important;
	top: 8px; left: 8px; z-index: 1000;
	width: auto; height: auto; clip: auto;
	padding: 10px 16px;
	background: var(--fum-accent); color: #fff;
	border-radius: var(--r-sm);
}

.fum-icon { flex: none; display: inline-block; vertical-align: middle; }
.fum-flip { transform: rotate(180deg); }

.fum-container {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.fum-container--narrow { max-width: 860px; }

.fum-main {
	flex: 1 0 auto;
	padding-bottom: 32px;
}

/* Logos per colour mode */
[data-theme="dark"] .fum-logo--light,
[data-theme="light"] .fum-logo--dark { display: none !important; }

/* ---------- Progress bar ---------- */
.fum-progress {
	position: fixed; inset: 0 0 auto; z-index: 300;
	height: 3px; pointer-events: none;
}
.fum-progress span {
	display: block; height: 100%; width: 0;
	background: linear-gradient(90deg, var(--fum-accent), var(--fum-up));
	box-shadow: 0 0 12px var(--fum-accent);
	transition: width .4s var(--ease), opacity .3s;
	opacity: 0;
}
.fum-progress.is-active span { opacity: 1; width: 75%; transition: width 8s cubic-bezier(.1, .7, .1, 1); }

/* ---------- Buttons ---------- */
.fum-btn {
	--h: 44px;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: var(--h);
	padding: 0 18px;
	border-radius: 12px;
	border: 1px solid transparent;
	font-weight: 700; font-size: 15px; line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	text-decoration: none !important;
	transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
	user-select: none;
}
.fum-btn:active { transform: scale(.97); }
.fum-btn--sm { --h: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.fum-btn--lg { --h: 52px; padding: 0 22px; font-size: 16px; border-radius: 14px; }
.fum-btn--block { width: 100%; }
.fum-btn--primary {
	background: var(--fum-accent); color: #fff;
	box-shadow: 0 8px 24px -10px var(--fum-accent);
}
.fum-btn--primary:hover { background: color-mix(in srgb, var(--fum-accent) 88%, #fff); color: #fff; }
.fum-btn--ghost {
	background: var(--surface-2); color: var(--text);
	border-color: var(--line);
}
.fum-btn--ghost:hover { border-color: var(--line-2); background: var(--surface-3); color: var(--text); }
.fum-btn--light { background: #fff; color: #0a0f1c; }
.fum-btn--light:hover { color: #0a0f1c; background: #eef2ff; }

.fum-iconbtn {
	display: inline-grid; place-items: center;
	width: 40px; height: 40px;
	border-radius: 12px;
	background: transparent;
	border: 1px solid transparent;
	color: var(--text-2);
	cursor: pointer;
	transition: background .2s, color .2s;
}
.fum-iconbtn:hover { background: var(--surface-2); color: var(--text); }

.fum-mode-toggle .fum-i-sun { display: none; }
[data-theme="light"] .fum-mode-toggle .fum-i-sun { display: inline-block; }
[data-theme="light"] .fum-mode-toggle .fum-i-moon { display: none; }

.fum-chipbtn {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 7px 12px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--text-2);
	font-size: 13px; font-weight: 600;
	text-decoration: none !important;
}
.fum-chipbtn:hover { color: var(--text); border-color: var(--line-2); }

.fum-pill {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px; font-weight: 700; letter-spacing: .01em;
	white-space: nowrap;
}
.fum-pill--up { background: var(--up-soft); color: var(--fum-up); }
.fum-pill--muted { background: var(--surface-3); color: var(--muted); }
.fum-pill--accent { background: var(--accent-soft); color: var(--fum-accent); }

.fum-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	margin: 0 0 12px;
	font-size: 12px; font-weight: 700;
	letter-spacing: .12em; text-transform: uppercase;
	color: var(--fum-accent);
}

.fum-live { display: inline-flex; align-items: center; gap: 6px; }
.fum-live i {
	position: relative;
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--fum-up);
}
.fum-live i::after {
	content: ""; position: absolute; inset: -4px;
	border-radius: 50%;
	border: 2px solid var(--fum-up);
	opacity: 0;
	animation: fum-ping 2s var(--ease) infinite;
}
@keyframes fum-ping {
	0% { transform: scale(.5); opacity: .8; }
	100% { transform: scale(1.6); opacity: 0; }
}

.fum-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: 20px;
	box-shadow: var(--shadow);
}

.fum-h-sm { font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: 0; margin: 28px 0 12px; }

/* ---------- Header ---------- */
.fum-header {
	position: sticky; top: 0; z-index: 100;
	padding-top: var(--safe-t);
	background: var(--glass);
	-webkit-backdrop-filter: saturate(180%) blur(18px);
	backdrop-filter: saturate(180%) blur(18px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
.fum-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .5); }
.fum-header__inner {
	max-width: var(--maxw);
	margin-inline: auto;
	height: var(--header-h);
	padding-inline: var(--gutter);
	display: flex; align-items: center; gap: 20px;
}
.fum-brand { display: inline-flex; align-items: center; flex: none; text-decoration: none !important; }
.fum-brand img { display: block; height: 36px; width: auto; max-width: 170px; object-fit: contain; }
.fum-wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.fum-wordmark__mark {
	display: grid; place-items: center;
	width: 32px; height: 32px; border-radius: 10px;
	background: linear-gradient(135deg, var(--fum-accent), var(--fum-up));
	color: #fff;
}
.fum-wordmark__text { font-size: 15px; line-height: 1.1; letter-spacing: -.01em; }
.fum-wordmark__text strong { font-weight: 800; }
.fum-wordmark__text span { color: var(--muted); font-weight: 600; }

.fum-nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.fum-nav__reports,
.fum-menu > li > a {
	display: inline-flex; align-items: center; gap: 8px;
	height: 40px; padding: 0 12px;
	border-radius: 10px;
	border: 0; background: transparent;
	color: var(--text-2);
	font-size: 14.5px; font-weight: 600;
	cursor: pointer;
	text-decoration: none !important;
	transition: background .2s, color .2s;
}
.fum-nav__reports:hover,
.fum-nav__reports[aria-expanded="true"],
.fum-menu > li > a:hover,
.fum-menu > li.current-menu-item > a { background: var(--surface-2); color: var(--text); }
.fum-nav__reports[aria-expanded="true"] .fum-nav__chev { transform: rotate(180deg); }
.fum-nav__chev { transition: transform .2s; opacity: .7; }

.fum-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.fum-menu li { position: relative; }
.fum-menu .sub-menu {
	position: absolute; top: calc(100% + 6px); left: 0; z-index: 20;
	min-width: 240px; list-style: none; margin: 0; padding: 8px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
	box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s, transform .18s, visibility .18s;
}
.fum-menu li:hover > .sub-menu,
.fum-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.fum-menu .sub-menu a {
	display: block; padding: 9px 12px; border-radius: 8px;
	color: var(--text-2); font-size: 14px; font-weight: 600;
	text-decoration: none !important;
}
.fum-menu .sub-menu a:hover { background: var(--surface-2); color: var(--text); }

.fum-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.fum-account { position: relative; }
.fum-avatar {
	display: grid; place-items: center;
	width: 40px; height: 40px; border-radius: 50%;
	border: 2px solid var(--line-2);
	background: linear-gradient(135deg, var(--fum-accent), color-mix(in srgb, var(--fum-accent) 40%, var(--fum-up)));
	color: #fff; font-weight: 800; font-size: 14px;
	cursor: pointer;
}
.fum-account__menu {
	position: absolute; right: 0; top: calc(100% + 10px); z-index: 50;
	width: 260px; padding: 8px;
	background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
	animation: fum-pop .18s var(--ease);
}
.fum-account__menu[hidden] { display: none; }
.fum-account__head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: grid; gap: 6px; justify-items: start; }
.fum-account__menu a {
	display: flex; align-items: center; gap: 10px;
	padding: 10px 12px; border-radius: 10px;
	color: var(--text-2); font-weight: 600; font-size: 14.5px;
	text-decoration: none !important;
}
.fum-account__menu a:hover { background: var(--surface-2); color: var(--text); }
.fum-account__logout { color: var(--fum-down) !important; }
@keyframes fum-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.fum-footer {
	margin-top: 48px;
	border-top: 1px solid var(--line);
	background: var(--bg-2);
	padding: 48px 0 24px;
	font-size: 14.5px;
}
.fum-footer__grid { display: grid; gap: 32px; grid-template-columns: 1.6fr 1fr 1fr; }
.fum-footer__about p { color: var(--muted); margin: 14px 0 16px; max-width: 380px; }
.fum-footer__social { display: flex; flex-wrap: wrap; gap: 8px; }
.fum-footer__title { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 12px; font-weight: 700; }
.fum-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fum-footer ul a { color: var(--text-2); }
.fum-footer ul a:hover { color: var(--text); }
.fum-disclaimer {
	margin: 0 0 36px; padding: 18px 20px; border-radius: var(--r);
	background: var(--surface); border: 1px solid var(--line);
	color: var(--muted); font-size: 13px; line-height: 1.65;
	scroll-margin-top: calc(var(--header-h) + 16px);
}
.fum-disclaimer__title {
	display: flex; align-items: center; gap: 8px;
	margin: 0 0 8px; font-size: 13px; font-weight: 800;
	letter-spacing: .08em; text-transform: uppercase; color: var(--text-2);
}
.fum-disclaimer__title .fum-icon { color: var(--fum-warn); }
.fum-disclaimer p { margin: 0 0 8px; color: var(--muted); }
.fum-disclaimer p:last-child { margin-bottom: 0; }
.fum-disclaimer:target { border-color: var(--fum-warn); }
.fum-report__note a { margin-left: 4px; font-weight: 700; }
.fum-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px;
	margin-top: 20px; color: var(--muted); font-size: 13px;
}
.fum-credit a { color: var(--text-2); font-weight: 700; }

/* ---------- Tab bar (mobile) ---------- */
.fum-tabbar { display: none; }

/* ---------- Reports sheet / dropdown ---------- */
.fum-sheet { position: fixed; inset: 0; z-index: 200; }
.fum-sheet[hidden] { display: none; }
.fum-sheet__backdrop {
	position: absolute; inset: 0;
	background: rgba(3, 6, 14, .55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	animation: fum-fade .2s ease;
}
.fum-sheet__panel {
	position: absolute;
	top: calc(var(--header-h) + var(--safe-t) + 8px);
	left: 50%; transform: translateX(-50%);
	width: min(880px, calc(100% - 32px));
	max-height: calc(100vh - var(--header-h) - 40px);
	overflow: auto;
	padding: 20px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-xl);
	box-shadow: var(--shadow-lg);
	animation: fum-drop .22s var(--ease);
	outline: none;
	overscroll-behavior: contain;
}
.fum-sheet__grab { display: none; }
.fum-sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.fum-sheet__head h2 { font-size: 20px; margin: 0 0 2px; }
.fum-sheet__head p { margin: 0; color: var(--muted); font-size: 14px; }
.fum-sheet__cta {
	display: flex; align-items: center; gap: 12px;
	margin-top: 16px; padding: 14px 16px;
	border-radius: var(--r);
	background: var(--accent-soft);
	color: var(--text); font-size: 14px;
	text-decoration: none !important;
}
.fum-sheet__cta span { flex: 1; }
.fum-sheet__cta .fum-icon { color: var(--fum-accent); }
@keyframes fum-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fum-drop { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes fum-up { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* Report cards grid */
.fum-rgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.fum-rcard {
	position: relative;
	display: flex; align-items: center; gap: 14px;
	height: 100%;
	padding: 14px;
	border-radius: var(--r);
	background: var(--surface-2);
	border: 1px solid var(--line);
	color: var(--text);
	text-decoration: none !important;
	transition: transform .18s var(--ease), border-color .2s, background .2s;
}
.fum-rgrid--home .fum-rcard { background: var(--surface); box-shadow: var(--shadow); }
.fum-rcard:hover { border-color: color-mix(in srgb, var(--fum-accent) 50%, var(--line)); transform: translateY(-1px); }
.fum-rcard:active { transform: scale(.98); }
.fum-rcard.is-active { border-color: var(--fum-accent); background: var(--accent-soft); }
.fum-rcard__icon {
	display: grid; place-items: center; flex: none;
	width: 42px; height: 42px; border-radius: 12px;
	background: var(--accent-soft); color: var(--fum-accent);
}
.fum-rcard__body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.fum-rcard__title { font-weight: 700; font-size: 15px; line-height: 1.25; }
.fum-rcard__desc { font-size: 13px; color: var(--muted); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fum-rcard__end { color: var(--muted); }
.fum-rcard.is-locked .fum-rcard__end { color: var(--fum-warn); }

/* ---------- Report dashboard ---------- */
.fum-chips { display: none; }

.fum-dash {
	max-width: 1440px;
	margin: 0 auto;
	padding: 24px var(--gutter) 0;
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}
.fum-dash__side {
	position: sticky; top: calc(var(--header-h) + var(--safe-t) + 16px);
	max-height: calc(100vh - var(--header-h) - 32px);
	overflow: auto;
	display: grid; gap: 16px;
	scrollbar-width: thin;
}
body.report-expanded .fum-dash { grid-template-columns: minmax(0, 1fr); }
body.report-expanded .fum-dash__side { display: none; }

.fum-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; }
.fum-side__label { margin: 6px 10px 8px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.fum-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.fum-side__link {
	display: flex; align-items: center; gap: 10px;
	padding: 9px 10px; border-radius: 10px;
	color: var(--text-2); font-size: 14.5px; font-weight: 600;
	text-decoration: none !important;
	transition: background .15s, color .15s;
}
.fum-side__link:hover { background: var(--surface-2); color: var(--text); }
.fum-side__link.is-active { background: var(--accent-soft); color: var(--text); }
.fum-side__link.is-active .fum-side__icon { color: var(--fum-accent); }
.fum-side__icon { display: grid; place-items: center; color: var(--muted); }
.fum-side__text { flex: 1; min-width: 0; }
.fum-side__lock { color: var(--fum-warn); }

.fum-upsell {
	display: grid; gap: 6px; justify-items: start;
	padding: 16px; border-radius: var(--r-lg);
	background: linear-gradient(160deg, var(--accent-soft), transparent 70%), var(--surface);
	border: 1px solid var(--line);
}
.fum-upsell .fum-icon { color: var(--fum-accent); }
.fum-upsell p { margin: 0 0 6px; color: var(--muted); font-size: 13.5px; }

.fum-rhead {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	margin-bottom: 16px;
}
.fum-rhead__title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.fum-rhead__icon {
	display: grid; place-items: center; flex: none;
	width: 48px; height: 48px; border-radius: 14px;
	background: linear-gradient(135deg, var(--fum-accent), color-mix(in srgb, var(--fum-accent) 50%, var(--fum-up)));
	color: #fff;
	box-shadow: 0 10px 24px -12px var(--fum-accent);
}
.fum-rhead h1 { font-size: clamp(22px, 2.4vw, 30px); margin: 0; }
.fum-rhead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 4px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.fum-rhead__meta .fum-live { color: var(--fum-up); }
.fum-rhead__tools { display: flex; gap: 8px; }
.fum-tool {
	display: inline-flex; align-items: center; gap: 8px;
	height: 38px; padding: 0 12px;
	border-radius: 10px;
	border: 1px solid var(--line); background: var(--surface);
	color: var(--text-2); font-size: 14px; font-weight: 600;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.fum-tool:hover { color: var(--text); border-color: var(--line-2); }
.fum-tool.is-spinning .fum-icon { animation: fum-spin .8s linear infinite; }
.fum-tool .fum-i-collapse { display: none; }
body.report-expanded .fum-tool .fum-i-collapse { display: inline-block; }
body.report-expanded .fum-tool .fum-i-expand { display: none; }
@keyframes fum-spin { to { transform: rotate(360deg); } }

.fum-report {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow);
	padding: clamp(16px, 2.2vw, 28px);
	min-height: 240px;
}
.fum-report__note { display: flex; align-items: center; gap: 6px; margin: 12px 4px 0; color: var(--muted); font-size: 12.5px; }

/* Light "paper" surface for chart files that hard-code colours */
/* Elementor's Kit can paint <body> white; the theme owns the page background in both modes. */
body.fum-app { background-color: var(--bg); }

.fum-paper,
.fum-report-paper .fum-report {
	--surface: #ffffff;
	--surface-2: #f5f7fb;
	--surface-3: #eef1f7;
	--line: rgba(15, 23, 42, .09);
	--line-2: rgba(15, 23, 42, .16);
	--text: #0d1526;
	--text-2: #34405a;
	--muted: #66728a;
	color-scheme: light;
	background: #fff;
	color: var(--text);
}

/* ---------- Content (editor, shortcodes, chart files) ---------- */
.fum-content { color: var(--text); overflow-wrap: break-word; }
.fum-content > *:first-child { margin-top: 0; }
.fum-content > *:last-child { margin-bottom: 0; }
.fum-content:not(.fum-content--elementor) h2 { font-size: clamp(20px, 2vw, 26px); margin-top: 1.4em; }
.fum-content:not(.fum-content--elementor) h3 { font-size: clamp(18px, 1.6vw, 21px); margin-top: 1.3em; }
.fum-content:not(.fum-content--elementor) h4 { font-size: 17px; margin-top: 1.2em; }
.fum-content p,
.fum-content li { color: var(--text-2); }
.fum-content ul,
.fum-content ol { padding-left: 1.3em; }
.fum-content li { margin-bottom: .3em; }
.fum-content img { border-radius: var(--r-sm); }
.fum-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.fum-content blockquote {
	margin: 1.5em 0; padding: 14px 18px;
	border-left: 3px solid var(--fum-accent);
	background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.fum-content iframe,
.fum-content embed,
.fum-content object { max-width: 100%; border: 0; border-radius: var(--r-sm); }
.fum-content figure { margin: 1.5em 0; max-width: 100%; }
.fum-content figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }

.fum-content code,
.fum-content kbd { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: .15em .4em; border-radius: 6px; }
.fum-content pre {
	font-family: var(--mono); font-size: 13px; line-height: 1.55;
	background: var(--surface-2); color: var(--text);
	border: 1px solid var(--line);
	padding: 14px 16px; border-radius: var(--r);
	overflow: auto; -webkit-overflow-scrolling: touch;
	white-space: pre;
	max-width: 100%;
}
.fum-content pre code { background: none; padding: 0; }

/* Tables: wrapped by JS in .fum-table-scroll for swipeable horizontal scroll */
.fum-table-scroll {
	position: relative;
	max-width: 100%;
	margin: 1.25em 0;
	border: 1px solid var(--line);
	border-radius: var(--r);
	overflow: hidden;
	background: var(--surface);
}
.fum-table-scroll__inner { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.fum-table-scroll::before,
.fum-table-scroll::after {
	content: ""; position: absolute; top: 0; bottom: 0; width: 24px; z-index: 2;
	pointer-events: none; opacity: 0; transition: opacity .2s;
}
.fum-table-scroll::before { left: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .18), transparent); }
.fum-table-scroll::after { right: 0; background: linear-gradient(270deg, rgba(0, 0, 0, .18), transparent); }
.fum-table-scroll.can-left::before,
.fum-table-scroll.can-right::after { opacity: 1; }
.fum-table-scroll__hint {
	display: none;
	align-items: center; gap: 6px;
	padding: 6px 12px;
	font-size: 12px; font-weight: 600; color: var(--muted);
	border-bottom: 1px solid var(--line);
	background: var(--surface-2);
}
.fum-table-scroll.has-overflow .fum-table-scroll__hint { display: flex; }
.fum-content .fum-table-scroll table { margin: 0; border: 0; border-radius: 0; }

.fum-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	margin: 1.25em 0;
}
.fum-content th,
.fum-content td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid var(--line);
	vertical-align: middle;
	white-space: nowrap;
}
.fum-content td { color: var(--text-2); }
.fum-content thead th,
.fum-content tr:first-child th {
	background: var(--surface-2);
	color: var(--text);
	font-size: 12px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .06em;
}
.fum-content tbody tr { transition: background .15s; }
.fum-content tbody tr:hover { background: var(--surface-2); }
.fum-content tbody tr:last-child td { border-bottom: 0; }
.fum-content td.fum-up,
.fum-content .fum-up { color: var(--fum-up); font-weight: 700; }
.fum-content td.fum-down,
.fum-content .fum-down { color: var(--fum-down); font-weight: 700; }
.fum-content td.fum-badge-up span,
.fum-content td.fum-badge-down span {
	display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px;
}
.fum-content td.fum-badge-up span { background: var(--up-soft); }
.fum-content td.fum-badge-down span { background: var(--down-soft); }
/* Allow wrapping for long text tables on wide screens */
@media (min-width: 960px) {
	.fum-content td { white-space: normal; }
	.fum-content td:first-child { white-space: nowrap; }
}

/* Forms (PMPro, login, comments, generic) */
.fum-content input[type="text"],
.fum-content input[type="email"],
.fum-content input[type="password"],
.fum-content input[type="tel"],
.fum-content input[type="number"],
.fum-content input[type="url"],
.fum-content input[type="search"],
.fum-content input[type="date"],
.fum-content select,
.fum-content textarea,
.fum-comments input[type="text"],
.fum-comments input[type="email"],
.fum-comments input[type="url"],
.fum-comments textarea,
.fum-search input {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	font: inherit; font-size: 16px; /* 16px stops iOS zoom */
	color: var(--text);
	background: var(--surface-2);
	border: 1px solid var(--line-2);
	border-radius: 12px;
	transition: border-color .2s, box-shadow .2s, background .2s;
	-webkit-appearance: none;
	appearance: none;
}
.fum-content select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238190a8' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px;
}
.fum-content textarea { min-height: 120px; }
.fum-content input:focus,
.fum-content select:focus,
.fum-content textarea:focus,
.fum-comments input:focus,
.fum-comments textarea:focus,
.fum-search input:focus {
	outline: none;
	border-color: var(--fum-accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
	background: var(--surface);
}
.fum-content label { display: inline-block; font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.fum-content input[type="checkbox"],
.fum-content input[type="radio"] { width: 18px; height: 18px; accent-color: var(--fum-accent); vertical-align: middle; margin-right: 6px; }

.fum-content input[type="submit"],
.fum-content button[type="submit"],
.fum-content .button,
.fum-content .wp-block-button__link,
.fum-content .pmpro_btn,
.fum-content a.pmpro_btn,
.fum-comments .submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px;
	font: inherit; font-size: 15px; font-weight: 700;
	color: #fff !important;
	background: var(--fum-accent);
	border: 0; border-radius: 12px;
	cursor: pointer;
	text-decoration: none !important;
	box-shadow: 0 8px 24px -10px var(--fum-accent);
	transition: transform .15s var(--ease), background .2s;
	-webkit-appearance: none;
}
.fum-content input[type="submit"]:hover,
.fum-content .pmpro_btn:hover,
.fum-content .button:hover { background: color-mix(in srgb, var(--fum-accent) 88%, #fff); }
.fum-content input[type="submit"]:active,
.fum-content .pmpro_btn:active { transform: scale(.98); }
.fum-content .pmpro_btn-cancel,
.fum-content .pmpro_btn-outline,
.fum-content a.pmpro_btn-cancel {
	background: var(--surface-2) !important; color: var(--text) !important;
	border: 1px solid var(--line-2) !important; box-shadow: none;
}

.fum-search { position: relative; display: flex; align-items: center; gap: 8px; }
.fum-search > .fum-icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.fum-search input { padding-left: 42px; }

/* ---------- Paid Memberships Pro ---------- */
/* Map PMPro 3's colour variables (Memberships → Settings → Design) onto the theme tokens.
   Declared on body and again on the report surface so the light "paper" card gets light values. */
body.fum-app,
body.fum-app .fum-report,
body.fum-app .fum-paper {
	--pmpro--color--base: var(--surface);
	--pmpro--color--base-2: var(--surface-2);
	--pmpro--color--contrast: var(--text);
	--pmpro--color--accent: var(--fum-accent);
	--pmpro--color--accent--variation: color-mix(in srgb, var(--fum-accent) 85%, #fff);
	--pmpro--color--border: var(--line-2);
	--pmpro--color--border--variation: var(--line);
	--pmpro--color--white: #fff;
	--pmpro--color--info-background: var(--accent-soft);
	--pmpro--color--info-border: color-mix(in srgb, var(--fum-accent) 35%, transparent);
	--pmpro--color--info-text: var(--text);
	--pmpro--color--info-link: var(--fum-accent);
	--pmpro--color--success-background: var(--up-soft);
	--pmpro--color--success-border: color-mix(in srgb, var(--fum-up) 35%, transparent);
	--pmpro--color--success-text: var(--text);
	--pmpro--color--success-link: var(--fum-up);
	--pmpro--color--error-background: var(--down-soft);
	--pmpro--color--error-border: color-mix(in srgb, var(--fum-down) 35%, transparent);
	--pmpro--color--error-text: var(--text);
	--pmpro--color--error-link: var(--fum-down);
	--pmpro--color--alert-background: color-mix(in srgb, var(--fum-warn) 14%, transparent);
	--pmpro--color--alert-border: color-mix(in srgb, var(--fum-warn) 35%, transparent);
	--pmpro--color--alert-text: var(--text);
	--pmpro--color--alert-link: var(--fum-warn);
	--pmpro--color--alert2-background: var(--surface-2);
	--pmpro--color--alert2-border: var(--line-2);
	--pmpro--color--alert2-text: var(--text);
	--pmpro--color--alert2-link: var(--fum-accent);
	--pmpro--base--border-radius: 12px;
	--pmpro--btn--border-radius: 12px;
	--pmpro--box-shadow: none;
}
.fum-content .pmpro { color: var(--text); }
.fum-content .pmpro_form_input,
.fum-content .pmpro .pmpro_form_input { min-height: 48px; padding: 12px 14px; border-radius: 12px; }
/* The theme draws its own lock badge on the members-only card */
.fum-content .pmpro_content_message .pmpro_card_title svg,
.fum-content .pmpro_content_message .pmpro_card_title .pmpro_icon { display: none; }
.fum-content .pmpro_content_message .pmpro_card_title { justify-content: center; }
.fum-content .pmpro .pmpro_card.pmpro_content_message {
	max-width: 520px;
	margin: 24px auto;
	padding-top: 56px;
	background: var(--surface-2);
	border-radius: var(--r-xl);
	text-align: center;
	overflow: visible;
}
.fum-content .pmpro .pmpro_content_message .pmpro_card_actions { justify-content: center; background: transparent; }
/* Members-only (locked) message */
.fum-content .pmpro_content_message,
.fum-content .pmpro_card.pmpro_no_access {
	position: relative;
	max-width: 520px;
	margin: 24px auto;
	padding: 72px 24px 28px;
	text-align: center;
	background: var(--surface-2);
	border: 1px solid var(--line);
	border-radius: var(--r-xl);
	color: var(--text-2);
}
.fum-content .pmpro_content_message::before,
.fum-content .pmpro_card.pmpro_no_access::before {
	content: "";
	position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
	width: 44px; height: 44px; border-radius: 14px;
	background: var(--fum-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / 22px no-repeat;
	box-shadow: 0 12px 28px -12px var(--fum-accent);
}
.fum-content .pmpro_content_message h2,
.fum-content .pmpro_content_message h3,
.fum-content .pmpro_card.pmpro_no_access h2 { font-size: 20px; margin-top: 0; }
.fum-content .pmpro_content_message a:not(.pmpro_btn),
.fum-content .pmpro_card.pmpro_no_access a:not(.pmpro_btn) { font-weight: 700; }
.fum-content .pmpro_content_message a[href*="pmpro_level"],
.fum-content .pmpro_card.pmpro_no_access a[href*="pmpro_level"] {
	display: flex; align-items: center; justify-content: center;
	min-height: 50px; margin: 16px 0 8px;
	background: var(--fum-accent); color: #fff !important;
	border-radius: 14px; font-weight: 800;
	text-decoration: none !important;
	box-shadow: 0 10px 28px -12px var(--fum-accent);
}

/* PMPro 3 cards & sections */
.fum-content .pmpro_card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow);
	margin: 0 0 20px;
	overflow: hidden;
}
.fum-content .pmpro_card_title { font-size: 18px; padding: 18px 20px 0; margin: 0; }
.fum-content .pmpro_card_content { padding: 16px 20px; }
.fum-content .pmpro_card_actions {
	padding: 14px 20px;
	border-top: 1px solid var(--line);
	background: var(--surface-2);
	display: flex; flex-wrap: wrap; gap: 8px 16px;
	font-size: 14px; font-weight: 700;
}
.fum-content .pmpro_section_title,
.fum-content .pmpro_form_heading { font-size: 18px; }
.fum-content .pmpro_form_fieldset,
.fum-content .pmpro_checkout fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.fum-content .pmpro_form_field,
.fum-content .pmpro_checkout-field { margin-bottom: 16px; }
.fum-content .pmpro_form_fields-inline { display: flex; gap: 12px; flex-wrap: wrap; }
.fum-content .pmpro_form_fields-inline > * { flex: 1 1 140px; }
.fum-content .pmpro_form_submit,
.fum-content .pmpro_submit { margin-top: 20px; }
.fum-content .pmpro_form_submit input[type="submit"],
.fum-content .pmpro_submit input[type="submit"] { width: 100%; min-height: 54px; font-size: 16px; }
.fum-content .pmpro_asterisk abbr { color: var(--fum-down); text-decoration: none; }
.fum-content .pmpro_form_hint,
.fum-content .pmpro_small { color: var(--muted); font-size: 13px; }

/* Messages */
.fum-content .pmpro_message,
.fum-content .pmpro_alert,
.fum-content .pmpro_error,
.fum-content .pmpro_success,
.fum-content .login-error,
.fum-content .message {
	padding: 12px 16px; border-radius: 12px; margin: 0 0 16px;
	font-size: 14.5px; font-weight: 600;
	background: var(--accent-soft); color: var(--text);
	border: 1px solid color-mix(in srgb, var(--fum-accent) 30%, transparent);
}
.fum-content .pmpro_error,
.fum-content .login-error { background: var(--down-soft); border-color: color-mix(in srgb, var(--fum-down) 35%, transparent); }
.fum-content .pmpro_success { background: var(--up-soft); border-color: color-mix(in srgb, var(--fum-up) 35%, transparent); }
.fum-content .pmpro_alert { background: color-mix(in srgb, var(--fum-warn) 14%, transparent); border-color: color-mix(in srgb, var(--fum-warn) 35%, transparent); }

/* Levels table as cards on mobile */
.fum-content .pmpro_levels_table td,
.fum-content .pmpro_table td { white-space: normal; }
.fum-content .pmpro_levels_table td:last-child a,
.fum-content .pmpro_levels_table .pmpro_btn { min-height: 42px; padding: 0 18px; }

/* Status tags */
.fum-content .pmpro_tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-3); }
.fum-content .pmpro_tag-success { background: var(--up-soft); color: var(--fum-up); }
.fum-content .pmpro_tag-error { background: var(--down-soft); color: var(--fum-down); }
.fum-content .pmpro_tag-alert { background: color-mix(in srgb, var(--fum-warn) 15%, transparent); color: var(--fum-warn); }

/* Login form */
.fum-content #loginform p,
.fum-content .login-username,
.fum-content .login-password { margin-bottom: 16px; }
.fum-content .login-remember label { font-weight: 600; color: var(--text-2); }
.fum-content .login-submit input { width: 100%; }
.fum-content .pmpro_actions_nav,
.fum-content .pmpro_login_wrap hr + p { text-align: center; font-size: 14px; }

/* ---------- Membership screens ---------- */
.fum-auth { padding: 28px var(--gutter) 0; }
.fum-auth__card {
	margin: 0 auto;
	max-width: 880px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-xl);
	box-shadow: var(--shadow);
	padding: clamp(20px, 3vw, 36px);
}
.fum-auth-narrow .fum-auth__card { max-width: 460px; }
.fum-auth__head { text-align: center; margin-bottom: 24px; }
.fum-auth__badge {
	display: inline-grid; place-items: center;
	width: 52px; height: 52px; border-radius: 16px;
	background: var(--accent-soft); color: var(--fum-accent);
	margin-bottom: 14px;
}
.fum-auth__head h1 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 6px; }
.fum-auth__head p { color: var(--muted); margin: 0; }
.fum-auth__content .pmpro_card { box-shadow: none; }

.fum-seg {
	display: flex; gap: 4px;
	padding: 4px; margin: 0 0 24px;
	border-radius: 14px;
	background: var(--surface-2);
	border: 1px solid var(--line);
	overflow-x: auto; scrollbar-width: none;
}
.fum-seg::-webkit-scrollbar { display: none; }
.fum-seg__item {
	flex: 1 0 auto;
	text-align: center;
	padding: 9px 14px;
	border-radius: 10px;
	color: var(--muted); font-weight: 700; font-size: 14px;
	white-space: nowrap;
	text-decoration: none !important;
}
.fum-seg__item:hover { color: var(--text); }
.fum-seg__item.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.fum-trust {
	list-style: none; margin: 24px 0 0; padding: 16px 0 0;
	border-top: 1px solid var(--line);
	display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px;
	color: var(--muted); font-size: 13px; font-weight: 600;
}
.fum-trust li { display: inline-flex; align-items: center; gap: 6px; }
.fum-trust .fum-icon { color: var(--fum-up); }

/* ---------- Standard pages / posts ---------- */
.fum-pagehead { padding-top: 32px; padding-bottom: 20px; }
.fum-pagehead h1 { font-size: clamp(28px, 4vw, 42px); margin: 0; }
.fum-pagehead__search { margin-top: 16px; max-width: 520px; }
.fum-page--elementor .fum-content,
.fum-content--full { padding: 0; }

.fum-posts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.fum-post__link {
	display: flex; flex-direction: column; height: 100%;
	background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--r-lg); overflow: hidden;
	color: var(--text); text-decoration: none !important;
	box-shadow: var(--shadow);
	transition: transform .2s var(--ease), border-color .2s;
}
.fum-post__link:hover { transform: translateY(-2px); border-color: var(--line-2); }
.fum-post__img img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.fum-post__body { padding: 18px; }
.fum-post__meta { color: var(--muted); font-size: 13px; margin: 0 0 6px; }
.fum-post__title { font-size: 19px; margin: 0 0 8px; }
.fum-post__excerpt p { color: var(--text-2); font-size: 15px; margin: 0; }
.fum-pagination { margin-top: 28px; }
.fum-pagination .nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.fum-pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px;
	border-radius: 10px; background: var(--surface); border: 1px solid var(--line);
	color: var(--text-2); font-weight: 700; text-decoration: none !important;
}
.fum-pagination .page-numbers.current { background: var(--fum-accent); border-color: var(--fum-accent); color: #fff; }
.fum-single__img img { width: 100%; border-radius: var(--r-lg); margin-bottom: 20px; }
.fum-postnav { display: flex; justify-content: space-between; gap: 16px; margin: 20px 0; font-weight: 700; }
.fum-comments { margin-top: 24px; }
.fum-comments__list { padding-left: 1.2em; }

.fum-empty { text-align: center; padding: 48px 24px; margin-top: 32px; display: grid; justify-items: center; gap: 4px; }
.fum-empty > .fum-icon { color: var(--muted); margin-bottom: 8px; }
.fum-empty__code {
	font-family: var(--mono); font-size: 64px; font-weight: 600; line-height: 1;
	background: linear-gradient(135deg, var(--fum-accent), var(--fum-up));
	-webkit-background-clip: text; background-clip: text; color: transparent;
	margin-bottom: 12px;
}
.fum-empty p { color: var(--muted); }
.fum-empty__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ---------- Homepage ---------- */
.fum-section { padding-top: clamp(48px, 7vw, 88px); }
.fum-sechead { max-width: 640px; margin-bottom: 28px; }
.fum-sechead h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 0 0 10px; }
.fum-sechead p { color: var(--text-2); margin: 0; font-size: 17px; }
.fum-sechead--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.fum-hero { position: relative; overflow: hidden; padding: clamp(36px, 7vw, 96px) 0 clamp(32px, 5vw, 64px); }
.fum-hero__glow {
	position: absolute; inset: -20% -10% auto;
	height: 120%;
	background:
		radial-gradient(40% 50% at 75% 30%, color-mix(in srgb, var(--fum-accent) 30%, transparent), transparent 70%),
		radial-gradient(30% 40% at 90% 70%, color-mix(in srgb, var(--fum-up) 18%, transparent), transparent 70%);
	pointer-events: none;
}
.fum-hero::after {
	content: ""; position: absolute; inset: 0;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: radial-gradient(70% 60% at 70% 40%, #000 0%, transparent 75%);
	mask-image: radial-gradient(70% 60% at 70% 40%, #000 0%, transparent 75%);
	opacity: .55;
	pointer-events: none;
}
.fum-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.fum-hero__title { font-size: clamp(36px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 18px; }
.fum-hero__text { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); max-width: 560px; margin: 0 0 28px; }
.fum-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fum-hero__fine { margin: 16px 0 0; color: var(--muted); font-size: 13.5px; font-weight: 600; }

.fum-hero__device { display: grid; place-items: center; }
.fum-phone {
	position: relative;
	width: min(360px, 100%);
	padding: 16px;
	border-radius: 32px;
	background: linear-gradient(180deg, var(--surface-2), var(--surface));
	border: 1px solid var(--line-2);
	box-shadow: var(--shadow-lg), 0 0 0 8px color-mix(in srgb, var(--surface) 60%, transparent);
	overflow: hidden;
	transform: rotate(-2deg);
	animation: fum-float 6s ease-in-out infinite;
}
@keyframes fum-float { 50% { transform: rotate(-2deg) translateY(-8px); } }
.fum-phone__bar { display: flex; align-items: center; justify-content: space-between; margin: 2px 4px 12px; font-weight: 800; font-size: 15px; }
.fum-phone__bar em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); padding: 3px 8px; border-radius: 999px; background: var(--surface-3); text-transform: uppercase; letter-spacing: .08em; }
.fum-sig {
	display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px;
	padding: 11px 10px; border-radius: 14px;
	background: var(--surface);
	border: 1px solid var(--line);
	margin-bottom: 8px;
	opacity: 0; transform: translateY(8px);
	animation: fum-in .5s var(--ease) forwards;
	animation-delay: calc(var(--i) * 90ms + 200ms);
}
@keyframes fum-in { to { opacity: 1; transform: none; } }
.fum-sig__tk { font-family: var(--mono); font-weight: 600; font-size: 14px; }
.fum-sig__nm { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fum-sig__bd { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.fum-sig__bd--up { background: var(--up-soft); color: var(--fum-up); }
.fum-sig__bd--down { background: var(--down-soft); color: var(--fum-down); }
.fum-phone__spark { display: block; width: 100%; height: 70px; color: var(--fum-up); margin-top: 6px; }

.fum-stats {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, 1fr);
	background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--r-lg); box-shadow: var(--shadow);
	overflow: hidden;
}
.fum-stats li { padding: 22px 20px; display: grid; gap: 2px; border-right: 1px solid var(--line); }
.fum-stats li:last-child { border-right: 0; }
.fum-stats strong { font-family: var(--mono); font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -.02em; }
.fum-stats span { color: var(--muted); font-size: 13.5px; font-weight: 600; }

.fum-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.fum-steps li {
	position: relative; padding: 24px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
	box-shadow: var(--shadow);
}
.fum-steps li > .fum-icon { color: var(--fum-accent); margin-bottom: 14px; }
.fum-steps h3 { font-size: 19px; margin-bottom: 6px; }
.fum-steps p { color: var(--text-2); margin: 0; font-size: 15px; }
.fum-steps__n { position: absolute; top: 20px; right: 22px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

.fum-proof { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fum-proof__item { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.fum-proof__img { background: #fff; padding: 10px; }
.fum-proof__img img { display: block; width: 100%; border-radius: 8px; }
.fum-proof__item figcaption { padding: 16px 18px; color: var(--text-2); font-size: 14.5px; }
.fum-proof__note { margin: 14px 2px 0; color: var(--muted); font-size: 13px; }
.fum-proof__note a { font-weight: 700; margin-left: 4px; }

.fum-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fum-benefit { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.fum-benefit > .fum-icon { color: var(--fum-up); margin-bottom: 14px; }
.fum-benefit h3 { font-size: 17px; margin-bottom: 6px; }
.fum-benefit p { color: var(--text-2); font-size: 14.5px; margin: 0; }

.fum-pricing { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; align-items: stretch; }
.fum-plan { position: relative; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.fum-plan--main { border-color: color-mix(in srgb, var(--fum-accent) 45%, var(--line)); background: linear-gradient(160deg, var(--accent-soft), transparent 55%), var(--surface); }
.fum-plan h3 { font-size: 20px; margin: 14px 0 10px; }
.fum-plan__price { display: flex; align-items: baseline; gap: 6px; margin: 0 0 18px; }
.fum-plan__price strong { font-family: var(--mono); font-size: clamp(40px, 5vw, 52px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.fum-plan__price span { color: var(--muted); font-weight: 600; }
.fum-plan__list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.fum-plan__list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.fum-plan__list .fum-icon { color: var(--fum-up); margin-top: 2px; }
.fum-plan__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 700; }
.fum-plan--soon p { color: var(--text-2); }
.fum-plan__art { position: absolute; right: -6px; bottom: -6px; width: 140px; height: 140px; color: var(--line-2); }

.fum-duo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.fum-quote {
	margin: 0; padding: clamp(22px, 3vw, 34px);
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow);
}
.fum-quote > .fum-icon { color: var(--fum-accent); margin-bottom: 10px; }
.fum-quote p { font-size: clamp(17px, 1.8vw, 21px); font-weight: 600; line-height: 1.5; color: var(--text); }
.fum-quote cite { font-style: normal; color: var(--muted); font-weight: 700; font-size: 14px; }
.fum-podcast {
	display: grid; align-content: start; gap: 6px;
	padding: clamp(22px, 3vw, 34px);
	border-radius: var(--r-xl);
	background: linear-gradient(150deg, color-mix(in srgb, var(--fum-up) 22%, transparent), transparent 60%), var(--surface);
	border: 1px solid var(--line); box-shadow: var(--shadow);
	color: var(--text); text-decoration: none !important;
	transition: transform .2s var(--ease);
}
.fum-podcast:hover { transform: translateY(-2px); }
.fum-podcast__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--fum-up); color: #04110b; margin-bottom: 10px; }
.fum-podcast .fum-eyebrow { color: var(--fum-up); margin: 0; }
.fum-podcast strong { font-size: 20px; }
.fum-podcast > span:not(.fum-eyebrow):not(.fum-podcast__icon):not(.fum-podcast__go) { color: var(--text-2); font-size: 15px; }
.fum-podcast__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 800; color: var(--fum-up); }

.fum-cta {
	margin-top: clamp(48px, 7vw, 88px);
	display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
	padding: clamp(24px, 4vw, 44px);
	border-radius: var(--r-xl);
	background: linear-gradient(120deg, var(--fum-accent), color-mix(in srgb, var(--fum-accent) 45%, #0a0f1c));
	color: #fff;
	box-shadow: 0 24px 60px -24px var(--fum-accent);
}
.fum-cta h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin: 0 0 6px; }
.fum-cta p { margin: 0; color: rgba(255, 255, 255, .82); }

/* Member home */
.fum-hello { padding-top: 28px; }
.fum-hello__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.fum-hello h1 { font-size: clamp(24px, 3vw, 34px); margin: 0; }
.fum-hello .fum-eyebrow { color: var(--muted); }
.fum-spotlight {
	display: flex; align-items: center; gap: 16px;
	padding: 20px;
	border-radius: var(--r-xl);
	background: linear-gradient(130deg, var(--fum-accent), color-mix(in srgb, var(--fum-accent) 40%, var(--fum-up)));
	color: #fff; text-decoration: none !important;
	box-shadow: 0 20px 48px -24px var(--fum-accent);
	transition: transform .2s var(--ease);
}
.fum-spotlight:active { transform: scale(.98); }
.fum-spotlight__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, .18); flex: none; }
.fum-spotlight__body { display: grid; gap: 2px; flex: 1; }
.fum-spotlight__body strong { font-size: 18px; }
.fum-spotlight__body span { color: rgba(255, 255, 255, .85); font-size: 14.5px; }

/* ---------- Toast (install prompt) ---------- */
.fum-toast {
	position: fixed; z-index: 150;
	left: 50%; transform: translateX(-50%);
	bottom: 24px;
	width: min(480px, calc(100% - 24px));
	display: flex; align-items: center; gap: 12px;
	padding: 10px 10px 10px 14px;
	background: var(--surface); border: 1px solid var(--line-2);
	border-radius: 18px; box-shadow: var(--shadow-lg);
	animation: fum-toast .3s var(--ease);
}
.fum-toast[hidden] { display: none; }
.fum-toast__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--fum-accent); flex: none; }
.fum-toast__text { flex: 1; font-size: 14px; font-weight: 600; }
@keyframes fum-toast { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Pull to refresh indicator */
.fum-ptr {
	position: fixed; z-index: 120; left: 50%;
	top: calc(var(--header-h) + var(--safe-t));
	display: grid; place-items: center;
	width: 40px; height: 40px; margin-left: -20px; border-radius: 50%;
	background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow);
	color: var(--fum-accent);
	transform: translateY(-60px); opacity: 0;
	pointer-events: none;
}
.fum-ptr.is-ready .fum-icon { color: var(--fum-up); }
.fum-ptr.is-loading .fum-icon { animation: fum-spin .8s linear infinite; }

/* ==========================================================================
   Tablet & below
   ========================================================================== */
@media (max-width: 1100px) {
	.fum-benefits { grid-template-columns: repeat(2, 1fr); }
	.fum-dash { grid-template-columns: 220px minmax(0, 1fr); }
}

/* ==========================================================================
   Mobile app mode (≤ 959px)
   ========================================================================== */
@media (max-width: 959px) {
	:root { --header-h: 58px; }

	body { padding-bottom: calc(var(--tab-h) + var(--safe-b)); overscroll-behavior-y: none; }

	.fum-hide-mobile { display: none !important; }

	.fum-nav { display: none; }
	.fum-header__inner { gap: 12px; }
	.fum-brand img { height: 30px; max-width: 140px; }
	.fum-header__actions .fum-btn--ghost { --h: 36px; padding: 0 12px; }

	/* Account menu becomes a bottom-anchored card */
	.fum-account__menu {
		position: fixed; right: 12px; left: 12px; top: auto;
		bottom: calc(var(--tab-h) + var(--safe-b) + 12px);
		width: auto;
		animation: fum-toast .22s var(--ease);
	}

	/* Tab bar */
	.fum-tabbar {
		position: fixed; z-index: 110;
		left: 0; right: 0; bottom: 0;
		height: calc(var(--tab-h) + var(--safe-b));
		padding-bottom: var(--safe-b);
		display: grid; grid-template-columns: repeat(5, 1fr);
		background: var(--glass);
		-webkit-backdrop-filter: saturate(180%) blur(20px);
		backdrop-filter: saturate(180%) blur(20px);
		border-top: 1px solid var(--line);
	}
	.fum-tab {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
		border: 0; background: transparent;
		color: var(--muted);
		font-size: 10.5px; font-weight: 700; letter-spacing: .01em;
		text-decoration: none !important;
		cursor: pointer;
		transition: color .15s;
		-webkit-user-select: none; user-select: none;
	}
	.fum-tab .fum-icon { transition: transform .2s var(--ease); }
	.fum-tab:active .fum-icon { transform: scale(.88); }
	.fum-tab.is-active { color: var(--text); }
	.fum-tab.is-active > .fum-icon { color: var(--fum-accent); }
	.fum-tab--join { color: var(--fum-accent); }
	.fum-tab__fab {
		display: grid; place-items: center;
		width: 46px; height: 46px; margin-top: -22px; margin-bottom: 1px;
		border-radius: 16px;
		background: linear-gradient(135deg, var(--fum-accent), color-mix(in srgb, var(--fum-accent) 50%, var(--fum-up)));
		color: #fff;
		box-shadow: 0 10px 22px -8px var(--fum-accent), 0 0 0 4px var(--bg);
	}
	.fum-tab--center.is-active { color: var(--text); }

	/* Sheet becomes a bottom sheet */
	.fum-sheet__panel {
		top: auto; left: 0; right: 0; bottom: 0;
		transform: none;
		width: 100%;
		max-height: 86vh;
		padding: 8px 16px calc(20px + var(--safe-b));
		border-radius: 26px 26px 0 0;
		border-bottom: 0;
		animation: fum-up .32s var(--ease);
		touch-action: pan-y;
	}
	.fum-sheet__grab { display: block; width: 40px; height: 5px; border-radius: 999px; background: var(--line-2); margin: 4px auto 12px; }
	.fum-sheet.is-dragging .fum-sheet__panel { transition: none; }
	.fum-rgrid { grid-template-columns: 1fr; gap: 8px; }
	.fum-rgrid--sheet .fum-rcard { padding: 12px; }
	.fum-rgrid--sheet .fum-rcard__icon { width: 38px; height: 38px; }

	/* Reports: chips + full width */
	.fum-chips {
		display: block;
		position: sticky; z-index: 90;
		top: calc(var(--header-h) + var(--safe-t));
		background: var(--glass);
		-webkit-backdrop-filter: saturate(180%) blur(18px);
		backdrop-filter: saturate(180%) blur(18px);
		border-bottom: 1px solid var(--line);
	}
	.fum-chips__track {
		display: flex; gap: 8px;
		padding: 10px var(--gutter);
		overflow-x: auto; scroll-snap-type: x proximity;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.fum-chips__track::-webkit-scrollbar { display: none; }
	.fum-chip {
		flex: none; scroll-snap-align: start;
		display: inline-flex; align-items: center; gap: 6px;
		height: 34px; padding: 0 12px;
		border-radius: 999px;
		background: var(--surface-2); border: 1px solid var(--line);
		color: var(--text-2); font-size: 13.5px; font-weight: 700;
		white-space: nowrap;
		text-decoration: none !important;
	}
	.fum-chip.is-active { background: var(--fum-accent); border-color: var(--fum-accent); color: #fff; }

	.fum-dash { display: block; padding-top: 16px; }
	.fum-dash__side { display: none; }
	.fum-rhead { align-items: flex-start; }
	.fum-rhead__icon { width: 42px; height: 42px; border-radius: 12px; }
	.fum-rhead__tools { width: 100%; }
	.fum-rhead__tools .fum-tool { flex: 1; justify-content: center; }
	.fum-rhead__tools .fum-tool[data-share] { flex: 0 0 46px; padding: 0; }
	.fum-report { margin-inline: calc(var(--gutter) * -1); border-radius: 0; border-inline: 0; padding: 16px var(--gutter); }

	.fum-content th,
	.fum-content td { padding: 9px 10px; font-size: 13px; }
	.fum-content table { font-size: 13px; }

	/* Membership screens: edge-to-edge sheet look */
	.fum-auth { padding: 16px 0 0; }
	.fum-auth__card { border-radius: 24px; margin-inline: 12px; padding: 20px 14px; }
	.fum-auth__content .pmpro_card_content,
	.fum-auth__content .pmpro_card_title { padding-inline: 14px; }

	/* Home */
	.fum-hero__grid { grid-template-columns: 1fr; gap: 32px; }
	.fum-hero__cta .fum-btn { flex: 1 1 auto; }
	.fum-phone { transform: none; animation: none; margin-inline: auto; }
	.fum-stats { grid-template-columns: repeat(2, 1fr); }
	.fum-stats li:nth-child(2) { border-right: 0; }
	.fum-stats li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	.fum-steps { grid-template-columns: 1fr; }
	.fum-steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding: 18px; }
	.fum-steps li > .fum-icon { grid-row: span 2; margin: 0; }
	.fum-steps h3 { margin: 0 0 2px; font-size: 17px; }
	.fum-proof,
	.fum-pricing,
	.fum-duo { grid-template-columns: 1fr; }
	.fum-benefits {
		grid-template-columns: none;
		grid-auto-flow: column; grid-auto-columns: 78%;
		overflow-x: auto; scroll-snap-type: x mandatory;
		margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px;
		scrollbar-width: none;
	}
	.fum-benefits::-webkit-scrollbar { display: none; }
	.fum-benefit { scroll-snap-align: center; }
	.fum-cta { flex-direction: column; align-items: stretch; text-align: center; }

	.fum-footer { padding-top: 32px; margin-top: 32px; }
	.fum-footer__grid { grid-template-columns: 1fr 1fr; }
	.fum-footer__about { grid-column: 1 / -1; }
	.fum-footer__bottom { flex-direction: column; }

	.fum-toast { bottom: calc(var(--tab-h) + var(--safe-b) + 12px); }

	/* Installed-app (standalone) polish */
	@media (display-mode: standalone) {
		/* Installed app: keep the disclaimer and credit, drop the website-style link columns. */
		.fum-footer__grid { display: none; }
		.fum-footer { margin-top: 24px; padding-top: 8px; }
		body { -webkit-user-select: none; user-select: none; }
		.fum-content,
		.fum-content * { -webkit-user-select: text; user-select: text; }
	}
}

@media (max-width: 380px) {
	.fum-wordmark__text span { display: none; }
	.fum-tab { font-size: 10px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.fum-sig { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
	.fum-header, .fum-tabbar, .fum-footer, .fum-dash__side, .fum-chips, .fum-rhead__tools, .fum-sheet, .fum-toast, .fum-progress { display: none !important; }
	body { background: #fff; color: #000; padding: 0; }
	.fum-dash { display: block; padding: 0; }
	.fum-report { border: 0; box-shadow: none; padding: 0; }
}

/* ---------- Report data files (v1.1) ---------- */
.fum-rhead__desc { margin: 2px 0 0; color: var(--text-2); font-size: 14.5px; font-weight: 600; }
.fum-file + .fum-file { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.fum-file-html { overflow-x: auto; }
.fum-file-text { margin: 0; }
.fum-file-image { margin: 0; }
.fum-file-image img { display: block; width: auto; max-width: 100%; margin-inline: auto; border-radius: var(--r-sm); }
.fum-file-pdf { display: grid; gap: 10px; justify-items: start; }
.fum-file-pdf iframe { width: 100%; height: min(80vh, 900px); border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.fum-file-error {
	padding: 12px 16px; border-radius: 12px; font-size: 14px;
	background: var(--down-soft); border: 1px solid color-mix(in srgb, var(--fum-down) 35%, transparent); color: var(--text);
}
.fum-file-error--public { background: var(--surface-2); border-color: var(--line); color: var(--muted); }
.fum-files-slot { display: none; }
@media (max-width: 959px) {
	.fum-file-pdf iframe { height: 70vh; }
}

/* ---------- Charts: fit the screen + tap to enlarge (v1.1) ---------- */
/* Fixed-size canvases (e.g. Chart.js with responsive:false sets inline px sizes) scale down to fit */
.fum-content canvas { max-width: 100% !important; height: auto !important; }
.fum-content svg:not(.fum-icon) { max-width: 100%; height: auto; }
.fum-content .fum-zoomable { cursor: zoom-in; }
.fum-zoomwrap { position: relative; display: block; max-width: 100%; }
.fum-zoomwrap--inline { display: inline-block; }
.fum-zoombadge {
	position: absolute; right: 8px; bottom: 8px; z-index: 2;
	display: inline-flex; align-items: center; gap: 5px;
	padding: 5px 9px; border-radius: 999px; border: 0;
	background: rgba(10, 15, 28, .78); color: #fff;
	font: 700 11.5px/1 var(--font);
	pointer-events: none;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
@media (min-width: 960px) { .fum-zoombadge { opacity: 0; transition: opacity .2s; } .fum-zoomwrap:hover .fum-zoombadge { opacity: 1; } }

.fum-viewer {
	position: fixed; inset: 0; z-index: 400;
	display: flex; flex-direction: column;
	background: rgba(4, 7, 15, .96);
	animation: fum-fade .18s ease;
}
.fum-viewer[hidden] { display: none; }
.fum-viewer__bar {
	display: flex; align-items: center; gap: 8px;
	padding: calc(var(--safe-t) + 10px) 12px 10px;
	color: #fff;
}
.fum-viewer__title { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fum-viewer__btn {
	display: inline-flex; align-items: center; gap: 6px;
	height: 38px; padding: 0 12px; border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08);
	color: #fff; font-weight: 700; font-size: 13.5px; cursor: pointer;
}
.fum-viewer__stage {
	flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
	display: flex; /* auto margins on the image centre it without clipping wide charts */
	padding: 12px 12px calc(var(--safe-b) + 16px);
}
.fum-viewer__stage img { display: block; margin: auto; flex: none; max-width: none; background: #fff; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.fum-viewer.is-fit .fum-viewer__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.fum-viewer__hint { margin: 0; padding: 0 16px calc(var(--safe-b) + 12px); color: rgba(255, 255, 255, .6); font-size: 12.5px; text-align: center; }
@media (orientation: landscape) { .fum-viewer__hint { display: none; } }

/* ---------- Chart windows (iframes) (v1.3) ---------- */
.fum-content iframe { max-width: 100%; display: block; }
.fum-frame iframe { width: 100%; border: 0; background: #fff; border-radius: var(--r-sm); }
.fum-frame--chart iframe { height: clamp(460px, 64vh, 680px); }
.fum-frame iframe[data-autoheight] { height: 420px; }
.fum-framebar { display: flex; justify-content: flex-end; margin: 4px 0 6px; }
.fum-framebar__btn {
	display: inline-flex; align-items: center; gap: 6px;
	height: 32px; padding: 0 12px; border-radius: 999px;
	border: 1px solid var(--line); background: var(--surface-2);
	color: var(--text-2); font: 700 12.5px/1 var(--font); cursor: pointer;
}
.fum-framebar__btn:hover { color: var(--text); border-color: var(--line-2); }
.fum-viewer--frame .fum-viewer__frame { flex: 1; min-height: 0; padding: 0 8px calc(var(--safe-b) + 8px); }
.fum-viewer--frame .fum-viewer__frame iframe { width: 100%; height: 100%; border: 0; background: #fff; border-radius: 10px; display: block; }
.fum-viewer--frame:fullscreen { background: #04070f; }
@media (max-width: 959px) {
	.fum-frame--chart iframe { height: 520px; }
}

/* ---------- Elementor inside the theme (v1.3) ---------- */
/* Stretched sections are sized by Elementor to the report card (see inc/elementor.php). */
.fum-content .elementor-section.elementor-section-stretched { max-width: none; }
/* Full-width Elementor pages: let sections use the whole page width. */
.fum-page--elementor .fum-content--elementor { width: 100%; }

.fum-canvas-disclaimer { padding-bottom: 32px; }
/* Stretched sections reach the card edges; clip them to its rounded corners. */
.fum-report { overflow: hidden; overflow: clip; }

/* Elementor-built pages (outside reports) sit on a light paper card: their layouts
   were designed for a white background, so they stay readable in dark mode. */
.fum-elementor-page { padding-top: 24px; }
.fum-elementor-paper {
	background: #fff; color: var(--text);
	border-radius: var(--r-lg); border: 1px solid var(--line);
	box-shadow: var(--shadow);
	padding: clamp(16px, 2.2vw, 28px);
	overflow: hidden; overflow: clip;
}
.fum-paper h1, .fum-paper h2, .fum-paper h3, .fum-paper h4, .fum-paper h5, .fum-paper h6 { color: var(--text); }
.fum-auth__card.fum-paper { background: #fff; }
@media (max-width: 959px) {
	.fum-elementor-page { padding-inline: 0; padding-top: 12px; }
	.fum-elementor-paper { border-radius: 0; border-inline: 0; padding: 16px var(--gutter); }
}
