/* Financa Funds – scoped to .ff */
.ff {
	--ff-blue: #27a8e1;
	--ff-blue-d: #1787bb;
	--ff-blue-l: #e8f6fc;
	--ff-green: #61ce70;
	--ff-ink: #111827;
	--ff-text: #374151;
	--ff-muted: #6b7280;
	--ff-line: #e5e7eb;
	--ff-bg: #f8fafc;
	--ff-pos: #15803d;
	--ff-neg: #b91c1c;
	--ff-radius: 12px;
	--ff-head: #136c96; /* darker shade of the brand blue, readable on white */
	--ff-orange: #ff8600;
	font-family: "Open Sans Hebrew", "Segoe UI", Arial, sans-serif;
	color: var(--ff-text);
	font-size: 16px;
	line-height: 1.6;
	padding: 16px 0 96px;
	background: #fff;
}
.ff *, .ff *::before, .ff *::after { box-sizing: border-box; }
.ff a { color: var(--ff-blue-d); text-decoration: none; }
.ff a:hover { text-decoration: underline; }
.ff h1, .ff h2, .ff h3 { font-family: "Open Sans Hebrew", "Segoe UI", Arial, sans-serif; line-height: 1.3; margin: 0 0 .5em; }
.ff h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); font-weight: 700; color: var(--ff-head); }
.ff h2 { font-size: 1.4rem; font-weight: 700; color: var(--ff-orange); }
.ff h3 { font-size: 1.15rem; font-weight: 700; color: var(--ff-blue-d); }
.ff input, .ff select, .ff button, .ff table { font-family: inherit; }
.ff p { margin: 0 0 1em; }
.ff-container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* Breadcrumbs */
.ff-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 16px; font-size: 13px; color: var(--ff-muted); }
.ff-crumbs li + li::before { content: "‹"; margin-inline-end: 4px; color: #9ca3af; }

/* Layout */
.ff-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
/* The aside stretches to the full row height so the form can travel with the page */
.ff-side { align-self: stretch; }
.ff-sticky { position: sticky; top: 100px; }
@media (max-width: 1024px) {
	.ff-cols { grid-template-columns: minmax(0, 1fr); }
	.ff-side { display: none; }
}

/* Header */
.ff-head { margin-bottom: 24px; }
.ff-kicker { color: var(--ff-blue-d); font-weight: 600; font-size: 14px; margin-bottom: 6px !important; }
.ff-lede { font-size: 1.08rem; color: var(--ff-text); }
.ff-fund-head { display: flex; gap: 16px; align-items: flex-start; }
.ff-muted { color: var(--ff-muted); font-size: 13px; }
.ff-note { color: var(--ff-muted); font-size: 13px; margin-top: 8px; }
.ff-section { margin: 36px 0; }
.ff-prose ul, .ff-prose ol { padding-inline-start: 20px; }
.ff-prose li { margin-bottom: 6px; }
.ff-pos { color: var(--ff-pos); }
.ff-neg { color: var(--ff-neg); }
.ff-nowrap { white-space: nowrap; }

/* Buttons */
.ff-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--ff-blue); color: #fff !important; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none !important; transition: background .15s; font-family: inherit; }
.ff-btn:hover { background: var(--ff-blue-d); }
/* Beat the theme's global button styles */
.ff button.ff-btn, .ff a.ff-btn { background: var(--ff-blue) !important; border: 0 !important; color: #fff !important; box-shadow: none; line-height: 1.3; }
.ff button.ff-btn:hover, .ff a.ff-btn:hover { background: var(--ff-blue-d) !important; }
.ff button.ff-btn:disabled { opacity: .7; cursor: wait; }
.ff-btn:focus-visible { outline: 3px solid #93d5f2; outline-offset: 2px; }
.ff-btn-sm { padding: 8px 16px; font-size: 14px; }

/* Cards & grids */
.ff-card { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--ff-line); border-radius: var(--ff-radius); padding: 16px; color: var(--ff-text) !important; text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
a.ff-card:hover { border-color: var(--ff-blue); box-shadow: 0 4px 16px rgba(39, 168, 225, .12); }
.ff-card-name { font-weight: 700; color: var(--ff-head); }
.ff-product-grid, .ff-track-grid, .ff-company-grid, .ff-leader-grid { display: grid; gap: 12px; }
.ff-product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ff-track-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ff-company-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.ff-leader-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ff-product-card { border-top: 4px solid var(--ff-blue); }
.ff-company-card { align-items: flex-start; }
.ff-track-lead { display: flex; align-items: center; gap: 6px; font-size: 14px; margin-top: 6px; }
.ff-track-lead b { margin-inline-start: auto; }
.ff-leader-h { font-weight: 700; color: var(--ff-head); margin-bottom: 8px !important; }
.ff-leader ol { list-style: none; padding: 0; margin: 0 0 8px; counter-reset: l; }
.ff-leader li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--ff-line); counter-increment: l; }
.ff-leader li::before { content: counter(l); font-weight: 700; color: var(--ff-muted); width: 14px; }
.ff-leader li b { margin-inline-start: auto; }
.ff-more { font-size: 14px; font-weight: 600; }

/* Podium */
.ff-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 24px; }
.ff-podium .ff-card { align-items: flex-start; }
.ff-podium-1 { border-color: var(--ff-blue); background: var(--ff-blue-l); }
.ff-place { font-size: 12px; font-weight: 700; color: var(--ff-blue-d); text-transform: uppercase; }
.ff-big { font-size: 1.75rem; font-weight: 800; line-height: 1.1; }
@media (max-width: 640px) { .ff-podium { grid-template-columns: 1fr; } }

/* Callout */
.ff-callout { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; background: var(--ff-bg); border: 1px solid var(--ff-line); border-inline-start: 4px solid var(--ff-green); border-radius: var(--ff-radius); padding: 16px 20px; margin: 24px 0; }
.ff-callout p { margin: 0; flex: 1 1 320px; }

/* Logos */
.ff-logo { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 10px; background: #fff; border: 1px solid var(--ff-line); overflow: hidden; }
.ff-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.ff-mono { background: var(--ff-brand, #334155); color: #fff; font-weight: 800; border: 0; }
.ff-logo-xs { width: 20px; height: 20px; font-size: 11px; border-radius: 6px; }
.ff-logo-sm { width: 30px; height: 30px; font-size: 14px; border-radius: 8px; }
.ff-logo-md { width: 44px; height: 44px; font-size: 20px; }
.ff-logo-lg { width: 64px; height: 64px; font-size: 28px; border-radius: 14px; }
/* Real logos are mostly wide wordmarks: wider boxes, same heights */
.ff-logo-img.ff-logo-xs { width: 44px; }
.ff-logo-img.ff-logo-sm { width: 64px; }
.ff-logo-img.ff-logo-md { width: 96px; }
.ff-logo-img.ff-logo-lg { width: 150px; }
.ff-logo-img img { padding: 4px 6px; }

/* Tables */
.ff-table-wrap { overflow-x: auto; border: 1px solid var(--ff-line); border-radius: var(--ff-radius); -webkit-overflow-scrolling: touch; }
.ff-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; margin: 0; }
.ff-table caption { text-align: start; padding: 10px 12px; font-weight: 700; }
.ff-table th, .ff-table td { padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--ff-line); vertical-align: middle; border-top: 0; border-left: 0; border-right: 0; }
.ff-table thead th { background: var(--ff-bg); color: var(--ff-ink); font-weight: 700; white-space: nowrap; position: sticky; top: 0; }
.ff-table thead th button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; background: none !important; border: 0 !important; padding: 0 !important; color: inherit !important; font: inherit !important; }
.ff-table thead th[data-sort] button::after { content: "↕"; font-size: 11px; color: #9ca3af; }
.ff-table thead th[aria-sort="descending"] button::after { content: "▼"; color: var(--ff-blue-d); }
.ff-table thead th[aria-sort="ascending"] button::after { content: "▲"; color: var(--ff-blue-d); }
.ff-table thead th button:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.ff-table tbody tr:hover { background: #fafcff; }
.ff-table tbody td:not(.ff-name) { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ff-table tfoot td, .ff-table tfoot th { background: var(--ff-bg); font-weight: 700; font-size: 13px; }
.ff-rank, .ff-rank-h { width: 36px; color: var(--ff-muted); text-align: center !important; }
.ff-name { min-width: 230px; }
.ff-name { display: flex; align-items: center; gap: 10px; }
td.ff-name { display: table-cell; }
td.ff-name > * { vertical-align: middle; }
.ff-name > span:last-child, td.ff-name > span { display: inline-flex; flex-direction: column; }
td.ff-name .ff-logo { margin-inline-end: 8px; }
.ff-name a { font-weight: 600; color: var(--ff-ink); }
.ff-name small { color: var(--ff-muted); font-size: 12px; }
.ff-hl { background: var(--ff-blue-l) !important; }
.ff-details th { width: 40%; background: var(--ff-bg); font-weight: 600; }
.ff-details td { white-space: normal !important; }

/* Chart */
.ff-chart-wrap { margin: 0; border: 1px solid var(--ff-line); border-radius: var(--ff-radius); padding: 12px; }
.ff-chart { width: 100%; height: 260px; display: block; direction: ltr; }
.ff-grid { stroke: #eef2f7; stroke-width: 1; }
.ff-zero { stroke: #cbd5e1; stroke-width: 1; }
.ff-axis { fill: #6b7280; font-size: 11px; font-family: inherit; }
.ff-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; margin-top: 8px; }
.ff-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-inline-end: 6px; vertical-align: middle; }

/* KPIs */
.ff-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 24px; }
.ff-kpi { border: 1px solid var(--ff-line); border-radius: var(--ff-radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.ff-kpi-l { font-size: 13px; color: var(--ff-muted); }
.ff-kpi-v { font-size: 1.4rem; font-weight: 800; color: var(--ff-ink); font-variant-numeric: tabular-nums; }
.ff-kpi-v.ff-pos { color: var(--ff-pos); }
.ff-kpi-v.ff-neg { color: var(--ff-neg); }
.ff-kpi-a { font-size: 12px; color: var(--ff-muted); }

/* Chips / links */
.ff-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ff-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ff-line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--ff-ink) !important; background: #fff; }
.ff-chip:hover { border-color: var(--ff-blue); text-decoration: none !important; }
.ff-chip small { color: var(--ff-muted); }
.ff-links { list-style: none; padding: 0; margin: 0 0 12px; columns: 2 280px; }
.ff-links li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--ff-line); break-inside: avoid; }

/* FAQ */
.ff-faq details { border: 1px solid var(--ff-line); border-radius: var(--ff-radius); padding: 0 16px; margin-bottom: 8px; background: #fff; }
.ff-faq summary { cursor: pointer; font-weight: 700; color: var(--ff-head); padding: 14px 0; list-style: none; }
.ff-faq summary::-webkit-details-marker { display: none; }
.ff-faq summary::after { content: "+"; float: left; font-size: 20px; line-height: 1; color: var(--ff-blue-d); }
.ff-faq details[open] summary::after { content: "−"; }
.ff-faq details p { padding-bottom: 14px; margin: 0; }

/* Disclaimer */
.ff-disclaimer { font-size: 13px; color: var(--ff-muted); border-top: 1px solid var(--ff-line); padding-top: 16px; margin-top: 40px; }

/* Lead form */
.ff-lead { background: #fff; border: 1px solid var(--ff-line); border-top: 4px solid var(--ff-blue); border-radius: var(--ff-radius); padding: 20px; box-shadow: 0 6px 24px rgba(17, 24, 39, .06); }
.ff-lead-inline { margin: 36px 0; background: linear-gradient(180deg, var(--ff-blue-l), #fff 60%); }
.ff-lead-inline .ff-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.ff-lead-inline .ff-form > label:not(.ff-consent), .ff-lead-inline .ff-form > input, .ff-lead-inline .ff-form > select { grid-column: auto; }
.ff-lead-inline .ff-consent, .ff-lead-inline .ff-btn, .ff-lead-inline .ff-form-msg { grid-column: 1 / -1; }
@media (max-width: 640px) { .ff-lead-inline .ff-form { grid-template-columns: minmax(0, 1fr); } }
.ff-lead-title { font-size: 1.2rem; font-weight: 700; color: var(--ff-head); margin-bottom: 4px !important; }
.ff-lead-sub { font-size: 14px; color: var(--ff-muted); }
.ff-form label { display: block; font-size: 13px; font-weight: 600; color: var(--ff-ink); margin: 8px 0 4px; }
.ff-optional { font-weight: 400; color: var(--ff-muted); font-size: 12px; }
.ff-form input[type="email"] { width: 100%; border: 1px solid #d1d5db; border-radius: 8px; padding: 10px 12px; font-size: 16px; font-family: inherit; background: #fff; color: var(--ff-ink); min-height: 44px; text-align: right; }
.ff-form input[type="email"]:focus { outline: 2px solid var(--ff-blue); border-color: var(--ff-blue); }
.ff-form input[type="email"][aria-invalid="true"] { border-color: var(--ff-neg); }
.ff-form input[type="text"], .ff-form input[type="tel"], .ff-form select { width: 100%; border: 1px solid #d1d5db; border-radius: 8px; padding: 10px 12px; font-size: 16px; font-family: inherit; background: #fff; color: var(--ff-ink); min-height: 44px; }
.ff-form input:focus, .ff-form select:focus { outline: 2px solid var(--ff-blue); outline-offset: 0; border-color: var(--ff-blue); }
.ff-form input[aria-invalid="true"] { border-color: var(--ff-neg); }
.ff-form input[type="tel"] { text-align: right; }
.ff-form .ff-btn { width: 100%; margin-top: 14px; }
.ff-consent { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; font-size: 12px !important; color: var(--ff-muted) !important; margin-top: 12px !important; }
.ff-consent input { margin-top: 3px; flex: none; width: 16px; height: 16px; }
/* Honeypot: visually hidden without off-screen offsets (a negative offset adds scroll width in RTL) */
.ff-hp { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.ff-lead, .ff-form { position: relative; }
.ff-form-msg { font-size: 14px; margin: 10px 0 0; min-height: 1em; }
.ff-form-msg.ff-err { color: var(--ff-neg); }
.ff-lead-points { list-style: none; padding: 0; margin: 14px 0 0; font-size: 13px; color: var(--ff-muted); display: grid; gap: 4px; }
.ff-lead-points li::before, .ff-checks li::before { content: "✓"; color: var(--ff-green); font-weight: 800; margin-inline-end: 8px; }

/* Lead page */
/* Lead page layout (the form box itself carries .ff-lead-page, so the wrapper needs its own name) */
.ff-leadpage-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: start; max-width: 1040px; margin: 0 auto; }
.ff-checks { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 1.05rem; }
@media (max-width: 860px) { .ff-leadpage-wrap { grid-template-columns: minmax(0, 1fr); } }
.ff-thanks { text-align: center; max-width: 640px; margin: 40px auto; }

/* Thank-you page: full container width */
.ff-thanks-hero { text-align: center; padding: 40px 24px 32px !important; margin-bottom: 8px; }
.ff-thanks-hero .ff-lede { max-width: 640px; margin: 0 auto; }
.ff-thanks-check { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ff-green); margin-bottom: 14px; box-shadow: 0 6px 18px rgba(97, 206, 112, .35); }
.ff-thanks-check svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ff-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ff-steps li { display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: var(--ff-radius); box-shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 4px 14px rgba(17, 24, 39, .06); padding: 18px; }
.ff-steps b { color: var(--ff-head); font-size: 1.05rem; }
.ff-steps span:not(.ff-step-n) { color: var(--ff-text); font-size: 14px; }
.ff-step-n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ff-blue-l); color: var(--ff-head); font-weight: 800; }
@media (max-width: 760px) { .ff-steps { grid-template-columns: 1fr; } }
.ff-thanks-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px !important; }
.ff a.ff-btn.ff-btn-ghost { background: #fff !important; color: var(--ff-blue-d) !important; box-shadow: inset 0 0 0 2px var(--ff-blue); }
.ff a.ff-btn.ff-btn-ghost:hover { background: var(--ff-blue-l) !important; }

/* Medals: gold / silver / bronze for places 1-3 */
.ff { --ff-gold: #d4a017; --ff-silver: #9ea3a8; --ff-bronze: #b8692e; }
.ff-medal { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; font-size: 13px; line-height: 1; color: var(--ff-muted); flex: none; }
.ff-medal-1, .ff-table tbody tr:nth-child(1) .ff-rank .ff-medal { background: radial-gradient(circle at 32% 28%, #fff3b0, #f2c94c 45%, var(--ff-gold) 100%); color: #5b4300; box-shadow: 0 0 0 2px #f8e7a6, inset 0 -2px 0 rgba(0,0,0,.12); }
.ff-medal-2, .ff-table tbody tr:nth-child(2) .ff-rank .ff-medal { background: radial-gradient(circle at 32% 28%, #ffffff, #d9dcdf 45%, var(--ff-silver) 100%); color: #33383d; box-shadow: 0 0 0 2px #e6e8ea, inset 0 -2px 0 rgba(0,0,0,.12); }
.ff-medal-3, .ff-table tbody tr:nth-child(3) .ff-rank .ff-medal { background: radial-gradient(circle at 32% 28%, #ffe0c2, #dd9a5e 45%, var(--ff-bronze) 100%); color: #4a2408; box-shadow: 0 0 0 2px #f1d3b6, inset 0 -2px 0 rgba(0,0,0,.12); }
.ff-medal-lg { width: 40px; height: 40px; font-size: 18px; }
.ff-podium-1 { border-color: var(--ff-gold) !important; background: linear-gradient(180deg, #fffaeb, #fff) !important; border-top: 4px solid var(--ff-gold) !important; }
.ff-podium-2 { border-color: #c8ccd0 !important; background: linear-gradient(180deg, #f6f7f8, #fff) !important; border-top: 4px solid var(--ff-silver) !important; }
.ff-podium-3 { border-color: #e2b892 !important; background: linear-gradient(180deg, #fdf3ea, #fff) !important; border-top: 4px solid var(--ff-bronze) !important; }
.ff-place { display: inline-flex; align-items: center; gap: 8px; }
.ff-leader li::before { display: none; }
.ff-leader li .ff-medal { width: 22px; height: 22px; font-size: 12px; }

/* Company scorecard */
.ff-kpi-v small { font-size: .6em; font-weight: 600; color: var(--ff-muted); }
.ff-kpi-score { border-color: var(--ff-blue); background: var(--ff-blue-l); }
.ff-kpi-stars .ff-stars { font-size: 22px; }
.ff-kpi-stars .ff-stars-num { font-size: 1.2rem; }
.ff-kpi .ff-medal { width: 24px; height: 24px; font-size: 12px; vertical-align: middle; }
.ff-thirds { display: flex; height: 28px; border-radius: 999px; overflow: hidden; margin: 8px 0 4px; background: #f1f5f9; }
.ff-thirds span { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 13px; min-width: 0; }
.ff-t-top { background: #16a34a; }
.ff-t-mid { background: #cbd5e1; color: #334155 !important; }
.ff-t-bot { background: #f87171; }
.ff-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
@media (max-width: 760px) { .ff-two { grid-template-columns: 1fr; } }
.ff-highlight { gap: 0; border-top: 4px solid var(--ff-gold); }
.ff-highlight-weak { border-top-color: #f87171; }
.ff-highlight h3 { margin-bottom: 8px; }
.ff-highlight ul { list-style: none; padding: 0; margin: 0; }
.ff-highlight li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--ff-line); }
.ff-highlight li:last-child { border-bottom: 0; }
.ff-highlight li > span:last-child { display: flex; flex-direction: column; }
.ff-highlight a { font-weight: 600; color: var(--ff-ink); }
.ff-highlight small { color: var(--ff-muted); font-size: 12px; }
.ff-tag { flex: none; font-size: 11px; font-weight: 700; color: var(--ff-head); background: var(--ff-blue-l); border-radius: 6px; padding: 3px 7px; margin-top: 2px; white-space: nowrap; }
.ff-h-note { font-size: 13px; font-weight: 600; color: var(--ff-muted); }
.ff-score-pill { display: inline-block; min-width: 38px; text-align: center; border-radius: 999px; padding: 2px 8px; font-weight: 800; background: var(--ff-bg); }

/* "If you had invested" calculator */
.ff-calc { border: 1px solid var(--ff-line); border-inline-start: 4px solid var(--ff-blue); border-radius: var(--ff-radius); padding: 16px 20px; margin: 24px 0; background: #fff; }
.ff-calc-title { font-weight: 700; color: var(--ff-head); margin-bottom: 10px !important; }
.ff-calc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 1.05rem; }
.ff-calc-row select { border: 1px solid #d1d5db; border-radius: 8px; padding: 6px 10px; font-size: 16px; font-family: inherit; font-weight: 700; color: var(--ff-head); background: var(--ff-blue-l); min-height: 40px; }
.ff-calc-row select:focus { outline: 2px solid var(--ff-blue); }
/* Keep the selects inline inside the sentence (the theme makes selects full width) */
.ff .ff-calc-row select { width: auto !important; flex: 0 0 auto; display: inline-block; }
.ff .ff-calc-row select.ff-calc-fund { max-width: min(360px, 100%) !important; flex: 0 1 auto; }
.ff-calc-out { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--ff-line); }
.ff-calc-result { margin: 0 !important; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ff-calc-result strong { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ff-calc-gain { font-weight: 700; }
.ff-calc .ff-note { margin: 10px 0 0; }

/* Top bar: breadcrumbs + share */
.ff-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.ff-topbar .ff-crumbs ol { margin: 0; }
.ff-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ff-share-l { font-size: 13px; color: var(--ff-muted); margin-inline-end: 2px; }
.ff .ff-share-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ff-line); background: #fff; color: var(--ff-sc) !important; cursor: pointer; padding: 0; transition: background .15s, color .15s, border-color .15s; }
.ff .ff-share-btn:hover, .ff .ff-share-btn:focus-visible { background: var(--ff-sc); color: #fff !important; border-color: var(--ff-sc); text-decoration: none; }
.ff .ff-share-btn:focus-visible { outline: 2px solid var(--ff-sc); outline-offset: 2px; }
.ff-share-btn[hidden] { display: none !important; }
.ff-copied { font-size: 13px; color: var(--ff-pos); font-weight: 700; }
.ff .ff-gsource { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--ff-line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; color: var(--ff-ink) !important; }
.ff .ff-gsource:hover { border-color: #4285f4; text-decoration: none; box-shadow: 0 2px 8px rgba(66,133,244,.15); }
@media (max-width: 640px) { .ff-share-l { display: none; } .ff .ff-gsource span { font-size: 12px; } }

/* Stars */
.ff-stars-wrap { display: inline-flex; align-items: center; gap: 6px; }
.ff-stars { position: relative; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 1px; white-space: nowrap; }
.ff-stars-off { color: #e5e7eb; }
.ff-stars-on { position: absolute; inset-block: 0; inset-inline-start: 0; overflow: hidden; color: #f5b301; }
.ff-stars-num { font-weight: 700; font-size: 13px; color: var(--ff-ink); }
.ff-name .ff-stars { font-size: 12px; margin: 1px 0; }
.ff-rating-line { margin: -4px 0 8px !important; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ff-rating-line .ff-stars { font-size: 20px; }

/* Heatmap */
.ff-heatmap { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 12px; font-variant-numeric: tabular-nums; margin: 0; }
.ff-heatmap th { font-weight: 700; color: var(--ff-muted); padding: 4px; text-align: center; background: none; border: 0; }
.ff-heatmap tbody th { color: var(--ff-ink); }
.ff-heatmap td { text-align: center; padding: 8px 2px; border-radius: 6px; min-width: 42px; font-weight: 600; border: 0; }
.ff-heatmap .ff-hm-na { color: #cbd5e1; background: #f8fafc; }
.ff-heatmap .ff-hm-year { font-weight: 800; outline: 2px solid rgba(17,24,39,.08); }

/* Exposures + donut */
.ff-exp { display: grid; gap: 10px; margin-bottom: 16px; }
.ff-exp-row { display: grid; grid-template-columns: 120px 1fr 64px; align-items: center; gap: 10px; }
.ff-exp-l { font-size: 14px; font-weight: 600; color: var(--ff-ink); }
.ff-exp-bar { position: relative; height: 14px; background: #eef2f7; border-radius: 999px; }
.ff-exp-fill { position: absolute; inset-block: 0; inset-inline-start: 0; background: linear-gradient(90deg, var(--ff-blue), #136c96); border-radius: 999px; }
.ff-exp-avg { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-inline-start: -1px; background: var(--ff-orange); border-radius: 2px; }
.ff-exp-v { font-weight: 700; font-variant-numeric: tabular-nums; }
.ff-donut-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.ff-donut { width: 180px; height: 180px; flex: none; transform: none; }
.ff-donut-c { font-size: 3.6px; font-weight: 800; fill: var(--ff-head); font-family: inherit; }
.ff-donut-legend { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 18px; flex: 1 1 280px; }
.ff-donut-legend li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.ff-donut-legend i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.ff-donut-legend b { margin-inline-start: auto; font-variant-numeric: tabular-nums; }

/* Versus */
.ff-vs { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 8px 0 24px; }
.ff-vs-card { align-items: flex-start; }
.ff-vs-stat b { font-size: 1.6rem; color: var(--ff-head); margin-inline-end: 4px; }
.ff-vs-sep { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--ff-orange); color: #fff; font-weight: 800; border-radius: 999px; padding: 6px 10px; font-size: 13px; }
.ff-win { font-weight: 800; background: #f0fdf4; }
.ff-vs-table thead th { text-align: center; }
@media (max-width: 640px) { .ff-vs { grid-template-columns: 1fr; gap: 28px; } }

/* Compare tool */
.ff-compare-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
.ff-compare-form input { width: 100%; border: 1px solid #d1d5db; border-radius: 8px; padding: 10px 12px; font-size: 16px; min-height: 44px; font-family: inherit; }
.ff-compare-form input:focus { outline: 2px solid var(--ff-blue); border-color: var(--ff-blue); }
.ff-compare-form .ff-btn { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 640px) { .ff-compare-form { grid-template-columns: minmax(0, 1fr); } }
.ff-compare th[scope="col"] { white-space: normal !important; min-width: 160px; vertical-align: top; }
.ff-compare th[scope="row"] { background: var(--ff-bg); white-space: nowrap; }
.ff-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 6px; }
.ff-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Guides */
.ff-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ff-guide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }

/* Mobile sticky bar */
.ff-mbar { display: none; }
@media (max-width: 1024px) {
	/* Side padding keeps the button clear of the site's corner widgets (accessibility, WhatsApp) */
	.ff-mbar { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 999; align-items: center; justify-content: center; gap: 12px; padding: 10px 76px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--ff-line); box-shadow: 0 -4px 16px rgba(17, 24, 39, .08); font-weight: 700; color: var(--ff-ink); font-size: 15px; }
	body.ff-page .qlwapp__container { bottom: 64px !important; }
}
@media (max-width: 560px) {
	.ff-mbar > span { display: none; }
	.ff-mbar .ff-btn { flex: 1; }
}
@media (max-width: 640px) {
	.ff { font-size: 15px; }
	.ff-fund-head { flex-direction: column; gap: 8px; }
	.ff-section { margin: 28px 0; }
	.ff-table { font-size: 13px; }
	.ff-table th, .ff-table td { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) { .ff * { transition: none !important; } }

/* Chart hover (all pages) */
.ff-chart-box { position: relative; }
.ff-chart-line { position: absolute; top: 14px; bottom: 28px; width: 1px; background: #94a3b8; pointer-events: none; }
.ff-chart-tip { position: absolute; top: 0; z-index: 2; background: #fff; border: 1px solid var(--ff-line); border-radius: 8px; box-shadow: 0 6px 18px rgba(17, 24, 39, .12); padding: 8px 10px; font-size: 12px; line-height: 1.5; pointer-events: none; display: grid; gap: 2px; min-width: 150px; }
.ff-chart-tip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 6px; }
.ff-chart-tip[hidden], .ff-chart-line[hidden] { display: none; }

/* =====================================================================
   Design v2 (trial on the track page). Matches the regular Financa pages:
   orange H2 at weight 500, blue H3 at 400, TablePress-style light-blue table
   header, soft shadows instead of borders, filled share circles.
   ===================================================================== */
.ff-v2 { --ff-card-shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 4px 14px rgba(17, 24, 39, .06); --ff-th: #d9edf7; --ff-radius: 10px; }
.ff-v2 h2 { font-weight: 500; font-size: clamp(1.4rem, 1.2rem + .6vw, 1.75rem); color: var(--ff-orange); margin-bottom: .7em; }
.ff-v2 h3 { font-weight: 400; font-size: 1.3rem; color: var(--ff-blue); text-decoration: none !important; border: 0 !important; }
.ff-v2 .ff-section { margin: 44px 0; }

/* Share: filled brand circles, like the share row on articles */
.ff-v2 .ff-share-btn { background: var(--ff-sc); color: #fff !important; border-color: var(--ff-sc); width: 32px; height: 32px; }
.ff-v2 .ff-share-btn:hover, .ff-v2 .ff-share-btn:focus-visible { filter: brightness(1.08); box-shadow: 0 2px 8px rgba(17, 24, 39, .18); }

/* Hero band */
.ff-v2 .ff-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #eaf6fc 0%, #f5fbfe 100%); border-radius: var(--ff-radius); padding: 28px 28px 22px; margin-bottom: 0; isolation: isolate; }
.ff-v2 .ff-hero::before, .ff-v2 .ff-hero::after { content: ""; position: absolute; border-radius: 50%; background: #fff; opacity: .55; z-index: -1; }
.ff-v2 .ff-hero::before { width: 260px; height: 260px; inset-inline-end: -70px; top: -110px; }
.ff-v2 .ff-hero::after { width: 140px; height: 140px; inset-inline-end: 140px; bottom: -80px; opacity: .4; }
.ff-v2 .ff-hero h1 { margin-bottom: .35em; }
.ff-v2 .ff-hero .ff-lede { max-width: 760px; margin-bottom: 18px; }
.ff-hero-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ff-hero-stats li { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .85); border-radius: 8px; padding: 10px 12px; font-size: 14px; color: var(--ff-text); }
.ff-hero-stats svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--ff-blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ff-hero-stats b { color: var(--ff-head); font-size: 1.05rem; }
@media (max-width: 900px) { .ff-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Heroes with a company logo (fund / company pages) */
.ff-v2 .ff-hero.ff-fund-head { align-items: center; }
.ff-v2 .ff-hero .ff-logo-lg { background: #fff; box-shadow: 0 1px 3px rgba(17, 24, 39, .08); border: 0; }
.ff-v2 .ff-hero + .ff-kpis, .ff-v2 .ff-hero + .ff-section, .ff-v2 .ff-hero + .ff-podium { margin-top: 24px; }
.ff-v2 .ff-kpi { border: 0; box-shadow: var(--ff-card-shadow); }
.ff-v2 .ff-card { border-color: transparent; box-shadow: var(--ff-card-shadow); }
.ff-v2 a.ff-card:hover { box-shadow: 0 2px 4px rgba(17, 24, 39, .08), 0 10px 24px rgba(17, 24, 39, .1); }
.ff-v2 .ff-product-card { border-top: 4px solid var(--ff-blue); }
@media (max-width: 640px) { .ff-v2 .ff-hero { padding: 20px 16px 16px; } .ff-v2 .ff-hero::after { display: none; } }

/* In-page tabs, sticky under the site header */
.ff-tabs { position: sticky; top: 72px; z-index: 5; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; background: #fff; border-bottom: 1px solid var(--ff-line); margin: 0 0 24px; padding: 0 4px; }
.ff-tabs::-webkit-scrollbar { display: none; }
.ff .ff-tabs a { flex: none; padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--ff-muted); border-bottom: 3px solid transparent; text-decoration: none; white-space: nowrap; }
.ff .ff-tabs a:hover { color: var(--ff-head); text-decoration: none; }
.ff .ff-tabs a.is-active { color: var(--ff-head); border-bottom-color: var(--ff-orange); }
.ff-v2 [id^="ff-s-"] { scroll-margin-top: 130px; }

/* Podium: soft shadows instead of borders */
.ff-v2 .ff-podium { gap: 16px; margin-top: 0; }
.ff-v2 .ff-podium .ff-card { border: 0 !important; box-shadow: var(--ff-card-shadow); padding: 18px; gap: 6px; position: relative; }
.ff-v2 .ff-podium .ff-card:hover { box-shadow: 0 2px 4px rgba(17, 24, 39, .08), 0 10px 24px rgba(17, 24, 39, .1); transform: translateY(-1px); }
.ff-v2 .ff-podium-1 { border-top: 4px solid var(--ff-gold) !important; }
.ff-v2 .ff-podium-2 { border-top: 4px solid var(--ff-silver) !important; }
.ff-v2 .ff-podium-3 { border-top: 4px solid var(--ff-bronze) !important; }
.ff-v2 .ff-podium .ff-big { font-size: 2rem; margin-top: 4px; }

/* Callouts */
.ff-v2 .ff-callout { border: 0; border-inline-start: 4px solid var(--ff-green); background: #f3fbf4; box-shadow: none; }
.ff-callout-ico { width: 28px; height: 28px; flex: none; fill: none; stroke: #16a34a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ff-v2 .ff-calc { border: 0; box-shadow: var(--ff-card-shadow); border-inline-start: 4px solid var(--ff-blue); }

/* Table: TablePress-like header, inline logo + name, highlighted key column */
.ff-v2 .ff-table-wrap { border: 0; box-shadow: var(--ff-card-shadow); }
.ff-v2 .ff-table thead th { background: var(--ff-th); color: #111; font-weight: 700; border-bottom: 0; }
.ff-v2 .ff-table tbody tr:nth-child(even) { background: #f9fcfe; }
.ff-v2 .ff-table tbody tr:hover { background: #eef7fc; }
.ff-v2 .ff-table td { border-bottom-color: #eef2f6; }
.ff-v2 td.ff-name { display: flex; align-items: center; gap: 10px; min-width: 260px; }
.ff-v2 td.ff-name .ff-logo { margin: 0; }
.ff-v2 td.ff-name > span:last-child { min-width: 0; }
.ff-v2 .ff-table .ff-col-key { background: rgba(39, 168, 225, .07); font-weight: 700; }

/* Lead box: brand header strip */
.ff-v2 .ff-lead { border: 0; box-shadow: 0 2px 4px rgba(17, 24, 39, .06), 0 10px 30px rgba(17, 24, 39, .08); padding: 0; overflow: hidden; }
.ff-v2 .ff-lead-title { background: var(--ff-blue); color: #fff; margin: 0 !important; padding: 16px 20px 4px; }
.ff-v2 .ff-lead-sub { background: var(--ff-blue); color: rgba(255, 255, 255, .92); margin: 0; padding: 0 20px 16px; }
.ff-v2 .ff-lead .ff-form, .ff-v2 .ff-lead .ff-lead-points { padding-inline: 20px; }
.ff-v2 .ff-lead .ff-form { padding-top: 6px; }
.ff-v2 .ff-lead .ff-lead-points { padding-bottom: 18px; }
.ff-v2 .ff-lead-inline { background: #fff; }

/* Chart card */
.ff-v2 .ff-chart-wrap { border: 0; box-shadow: var(--ff-card-shadow); padding: 16px; }

/* FAQ + chips */
.ff-v2 .ff-faq details { border: 0; box-shadow: var(--ff-card-shadow); }
.ff-v2 .ff-chip { border-color: #e2e8f0; }

/* Sidebar lead box: compact so the whole form (incl. the button) fits on laptop screens while sticky */
.ff-side .ff-lead-points { display: none; }
.ff-side .ff-lead-sub { font-size: 13px; line-height: 1.45; }
.ff-side .ff-form label { margin: 6px 0 3px; font-size: 12.5px; }
.ff-side .ff-form input[type="text"], .ff-side .ff-form input[type="tel"], .ff-side .ff-form input[type="email"], .ff-side .ff-form select { min-height: 38px; padding: 7px 10px; font-size: 15px; }
.ff-side .ff-consent { margin-top: 8px !important; font-size: 11px !important; line-height: 1.4; }
.ff-side .ff-form .ff-btn { margin-top: 10px; padding: 10px 18px; }
.ff-v2 .ff-side .ff-lead .ff-form { padding-bottom: 16px; }
/* Short screens: drop the sub-line to save height. The sticky offset itself is set by ff.js so the
   form's bottom (with the button) is always reachable even when the form is taller than the screen. */
@media (max-height: 780px) { .ff-side .ff-lead-sub { display: none; } .ff-v2 .ff-side .ff-lead-title { padding-bottom: 14px; } }

/* Mobile: each fund becomes a compact card instead of a sideways-scrolling table */
@media (max-width: 640px) {
	.ff-v2 .ff-table[data-ff-sortable] thead { display: none; }
	.ff-v2 .ff-table[data-ff-sortable], .ff-v2 .ff-table[data-ff-sortable] tbody { display: block; }
	.ff-v2 .ff-table-wrap:has(.ff-table[data-ff-sortable]) { overflow: visible; box-shadow: none; }
	.ff-v2 .ff-table[data-ff-sortable] tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; padding: 12px; margin-bottom: 10px; border-radius: 10px; background: #fff !important; box-shadow: var(--ff-card-shadow); position: relative; }
	.ff-v2 .ff-table[data-ff-sortable] td { display: block; border: 0; padding: 0; white-space: normal; font-size: 14px; background: transparent !important; }
	.ff-v2 .ff-table[data-ff-sortable] td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; color: var(--ff-muted); }
	.ff-v2 .ff-table[data-ff-sortable] td.ff-name { grid-column: 1 / -1; min-width: 0; padding-inline-start: 34px; margin-bottom: 4px; }
	.ff-v2 .ff-table[data-ff-sortable] td.ff-rank { position: absolute; top: 12px; inset-inline-start: 10px; width: auto; }
	.ff-v2 .ff-table[data-ff-sortable] .ff-col-key { background: none; }
	.ff-v2 .ff-table[data-ff-sortable] tfoot { display: none; }
	.ff-v2 .ff-tabs { top: 60px; }
}
