/* ==========================================================================
   Blox Fruits Market — main stylesheet
   Custom CSS, no framework. Organized: tokens > reset > layout > components.
   ========================================================================== */

:root {
	/* Color */
	--bfm-bg: #0b0f1a;
	--bfm-bg-elevated: #101524;
	--bfm-surface: #141a2b;
	--bfm-surface-2: #182036;
	--bfm-border: #262f45;
	--bfm-border-soft: #1c2338;
	--bfm-text: #e9ebf2;
	--bfm-text-muted: #9aa3ba;
	--bfm-text-dim: #6c7690;
	--bfm-accent: #8477f2;
	--bfm-accent-strong: #6f5ff0;
	--bfm-accent-2: #4c8dff;
	--bfm-positive: #4ade80;
	--bfm-negative: #f87171;
	--bfm-warning: #f0b94a;

	/* Rarity */
	--bfm-rarity-common: #838da2;
	--bfm-rarity-uncommon: #46c27a;
	--bfm-rarity-rare: #4c8dff;
	--bfm-rarity-legendary: #a78bfa;
	--bfm-rarity-mythical: #eab54a;

	/* Type */
	--bfm-font-display: "Space Grotesk", "Segoe UI", sans-serif;
	--bfm-font-body: "Inter", "Segoe UI", sans-serif;
	--bfm-font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

	/* Layout */
	--bfm-radius: 14px;
	--bfm-radius-sm: 9px;
	--bfm-container: 1180px;
	--bfm-shadow: 0 10px 30px rgba(3, 5, 12, 0.45);
	--bfm-shadow-sm: 0 4px 14px rgba(3, 5, 12, 0.35);
	--bfm-header-h: 68px;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--bfm-header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}

body {
	margin: 0;
	background: var(--bfm-bg);
	color: var(--bfm-text);
	font-family: var(--bfm-font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1,
h2,
h3,
h4 {
	font-family: var(--bfm-font-display);
	line-height: 1.2;
	margin: 0 0 0.5em;
	font-weight: 600;
	letter-spacing: -0.01em;
}

p {
	margin: 0 0 1em;
	color: var(--bfm-text-muted);
}

button {
	font-family: inherit;
}

table {
	border-collapse: collapse;
	width: 100%;
}

input,
select,
button {
	font-size: 1rem;
}

/* ---------- Accessibility helpers ---------- */
.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;
}

.bfm-skip-link {
	position: fixed;
	top: -60px;
	left: 12px;
	z-index: 200;
	background: var(--bfm-accent-strong);
	color: #fff;
	padding: 10px 16px;
	border-radius: var(--bfm-radius-sm);
	transition: top 0.15s ease;
}

.bfm-skip-link:focus {
	top: 12px;
	position: absolute !important;
	width: auto;
	height: auto;
	clip: auto;
	overflow: visible;
}

:focus-visible {
	outline: 2px solid var(--bfm-accent-2);
	outline-offset: 2px;
}

/* ---------- Layout ---------- */
.bfm-container {
	max-width: var(--bfm-container);
	margin: 0 auto;
	padding: 0 20px;
}

.bfm-section {
	padding: 64px 0;
	border-top: 1px solid var(--bfm-border-soft);
}

.bfm-section__heading {
	max-width: 640px;
	margin: 0 0 32px;
}

.bfm-section__heading h2 {
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

.bfm-section__lede {
	margin: 0;
}

.bfm-note {
	font-size: 0.85rem;
	color: var(--bfm-text-dim);
	margin-top: 16px;
}

.bfm-mono {
	font-family: var(--bfm-font-mono);
	font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */
.bfm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 22px;
	border-radius: var(--bfm-radius-sm);
	font-weight: 600;
	font-size: 0.95rem;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
	white-space: nowrap;
}

.bfm-btn:hover {
	transform: translateY(-1px);
}

.bfm-btn--primary {
	background: var(--bfm-accent-strong);
	color: #fff;
}

.bfm-btn--primary:hover {
	background: var(--bfm-accent);
}

.bfm-btn--secondary {
	background: var(--bfm-surface-2);
	color: var(--bfm-text);
	border-color: var(--bfm-border);
}

.bfm-btn--secondary:hover {
	border-color: var(--bfm-accent-2);
}

.bfm-btn--link {
	padding: 0;
	background: none;
	color: var(--bfm-accent-2);
	font-weight: 600;
}

.bfm-btn--small {
	padding: 9px 14px;
	font-size: 0.85rem;
}

.bfm-btn--block {
	display: flex;
	width: 100%;
}

/* ---------- Header ---------- */
.bfm-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(11, 15, 26, 0.86);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--bfm-border-soft);
}

.bfm-header__inner {
	height: var(--bfm-header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.bfm-logo {
	display: inline-flex;
	align-items: center;
}

.bfm-logo__text {
	font-family: var(--bfm-font-display);
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--bfm-text);
	letter-spacing: -0.01em;
}

.bfm-logo__accent {
	color: var(--bfm-accent-2);
}

.bfm-nav {
	display: none;
}

.bfm-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
}

.bfm-nav-link {
	display: inline-block;
	padding: 9px 14px;
	border-radius: var(--bfm-radius-sm);
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--bfm-text-muted);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.bfm-nav-link:hover,
.bfm-nav-item.is-current .bfm-nav-link {
	color: var(--bfm-text);
	background: var(--bfm-surface-2);
}

.bfm-menu-toggle {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 0;
	background: var(--bfm-surface-2);
	border: 1px solid var(--bfm-border);
	border-radius: var(--bfm-radius-sm);
	cursor: pointer;
}

.bfm-menu-toggle__bar {
	display: block;
	height: 2px;
	width: 18px;
	margin: 0 auto;
	background: var(--bfm-text);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.bfm-menu-toggle[aria-expanded="true"] .bfm-menu-toggle__bar:nth-child(2) {
	transform: translateY(7px) rotate(45deg);
}

.bfm-menu-toggle[aria-expanded="true"] .bfm-menu-toggle__bar:nth-child(3) {
	opacity: 0;
}

.bfm-menu-toggle[aria-expanded="true"] .bfm-menu-toggle__bar:nth-child(4) {
	transform: translateY(-7px) rotate(-45deg);
}

.bfm-mobile-menu {
	border-top: 1px solid var(--bfm-border-soft);
	background: var(--bfm-bg-elevated);
}

.bfm-mobile-menu__list {
	padding: 8px 20px 16px;
}

.bfm-mobile-menu__list li a {
	display: block;
	padding: 12px 4px;
	border-bottom: 1px solid var(--bfm-border-soft);
	color: var(--bfm-text);
	font-weight: 500;
}

.bfm-mobile-menu__list li:last-child a {
	border-bottom: none;
}

/* ---------- Breadcrumbs ---------- */
.bfm-breadcrumb-wrap {
	padding-top: 16px;
}

.bfm-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 0.82rem;
	color: var(--bfm-text-dim);
}

.bfm-breadcrumbs li:not(:last-child)::after {
	content: "/";
	margin-left: 6px;
	color: var(--bfm-text-dim);
}

.bfm-breadcrumbs a {
	color: var(--bfm-text-muted);
}

.bfm-breadcrumbs a:hover {
	color: var(--bfm-accent-2);
}

/* ---------- Hero ---------- */
.bfm-hero {
	padding: 56px 0 48px;
	background:
		radial-gradient(560px 280px at 15% 0%, rgba(132, 119, 242, 0.14), transparent 70%),
		radial-gradient(520px 260px at 85% 20%, rgba(76, 141, 255, 0.1), transparent 70%);
}

.bfm-hero__inner {
	text-align: left;
	max-width: 720px;
}

.bfm-hero__title {
	font-size: clamp(2.1rem, 1.7rem + 2vw, 3.2rem);
	margin-bottom: 0.4em;
}

.bfm-hero__subtitle {
	font-size: 1.1rem;
	max-width: 52ch;
	margin-bottom: 1.6em;
}

.bfm-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
}

.bfm-hero__trust {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	color: var(--bfm-text-dim);
	margin: 0;
}

.bfm-hero__trust-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--bfm-positive);
	box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}

/* ---------- Badges / trend ---------- */
.bfm-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	border: 1px solid transparent;
	background: var(--bfm-surface-2);
	color: var(--bfm-text-muted);
}

.bfm-badge--common { color: var(--bfm-rarity-common); border-color: color-mix(in srgb, var(--bfm-rarity-common) 40%, transparent); background: color-mix(in srgb, var(--bfm-rarity-common) 12%, var(--bfm-surface-2)); }
.bfm-badge--uncommon { color: var(--bfm-rarity-uncommon); border-color: color-mix(in srgb, var(--bfm-rarity-uncommon) 40%, transparent); background: color-mix(in srgb, var(--bfm-rarity-uncommon) 12%, var(--bfm-surface-2)); }
.bfm-badge--rare { color: var(--bfm-rarity-rare); border-color: color-mix(in srgb, var(--bfm-rarity-rare) 40%, transparent); background: color-mix(in srgb, var(--bfm-rarity-rare) 12%, var(--bfm-surface-2)); }
.bfm-badge--legendary { color: var(--bfm-rarity-legendary); border-color: color-mix(in srgb, var(--bfm-rarity-legendary) 40%, transparent); background: color-mix(in srgb, var(--bfm-rarity-legendary) 12%, var(--bfm-surface-2)); }
.bfm-badge--mythical { color: var(--bfm-rarity-mythical); border-color: color-mix(in srgb, var(--bfm-rarity-mythical) 40%, transparent); background: color-mix(in srgb, var(--bfm-rarity-mythical) 12%, var(--bfm-surface-2)); }

.bfm-trend {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: var(--bfm-font-mono);
	font-size: 0.85rem;
	font-weight: 600;
}

.bfm-trend--up { color: var(--bfm-positive); }
.bfm-trend--down { color: var(--bfm-negative); }
.bfm-trend--stable { color: var(--bfm-text-dim); }

/* ---------- Values table ---------- */
.bfm-values__controls {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}

.bfm-input,
.bfm-select {
	background: var(--bfm-surface);
	border: 1px solid var(--bfm-border);
	color: var(--bfm-text);
	border-radius: var(--bfm-radius-sm);
	padding: 11px 14px;
}

.bfm-input {
	flex: 1 1 220px;
	min-width: 0;
}

.bfm-select {
	flex: 0 1 190px;
}

.bfm-input:focus,
.bfm-select:focus {
	border-color: var(--bfm-accent-2);
}

.bfm-values__table-wrap {
	background: var(--bfm-surface);
	border: 1px solid var(--bfm-border);
	border-radius: var(--bfm-radius);
	overflow: hidden;
	box-shadow: var(--bfm-shadow-sm);
}

.bfm-values__table {
	width: 100%;
}

.bfm-values__table thead th {
	text-align: left;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--bfm-text-dim);
	padding: 14px 16px;
	background: var(--bfm-surface-2);
	border-bottom: 1px solid var(--bfm-border);
	white-space: nowrap;
}

.bfm-values__row th,
.bfm-values__row td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--bfm-border-soft);
	font-size: 0.92rem;
	white-space: nowrap;
}

.bfm-values__row th {
	font-weight: 600;
}

.bfm-values__row th a:hover {
	color: var(--bfm-accent-2);
}

.bfm-values__row:last-child th,
.bfm-values__row:last-child td {
	border-bottom: none;
}

.bfm-values__row:hover {
	background: var(--bfm-surface-2);
}

.bfm-values__empty {
	padding: 28px 16px;
	text-align: center;
	color: var(--bfm-text-dim);
}

/* ---------- Trade calculator ---------- */
.bfm-calculator__grid {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 20px;
	align-items: start;
}

.bfm-calculator__side {
	background: var(--bfm-surface);
	border: 1px solid var(--bfm-border);
	border-radius: var(--bfm-radius);
	padding: 20px;
	box-shadow: var(--bfm-shadow-sm);
}

.bfm-calculator__side h3 {
	font-size: 1rem;
	margin-bottom: 14px;
}

.bfm-calculator__picker {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
}

.bfm-calculator__picker .bfm-select {
	flex: 1;
}

.bfm-calculator__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 44px;
	margin-bottom: 14px;
}

.bfm-calculator__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	background: var(--bfm-surface-2);
	border: 1px solid var(--bfm-border-soft);
	border-radius: var(--bfm-radius-sm);
	padding: 9px 12px;
	font-size: 0.88rem;
}

.bfm-calculator__item-remove {
	background: none;
	border: none;
	color: var(--bfm-text-dim);
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
	padding: 2px 4px;
}

.bfm-calculator__item-remove:hover {
	color: var(--bfm-negative);
}

.bfm-calculator__total {
	margin: 0;
	padding-top: 12px;
	border-top: 1px solid var(--bfm-border-soft);
	font-size: 0.95rem;
	display: flex;
	justify-content: space-between;
}

.bfm-calculator__vs {
	display: none;
	align-items: center;
	justify-content: center;
	color: var(--bfm-text-dim);
	font-size: 1.4rem;
	padding-top: 60px;
}

.bfm-calculator__result {
	margin-top: 20px;
	padding: 16px 20px;
	border-radius: var(--bfm-radius);
	border: 1px solid var(--bfm-border);
	background: var(--bfm-surface);
	font-weight: 600;
	text-align: center;
}

.bfm-calculator__result[data-state="fair"] {
	border-color: color-mix(in srgb, var(--bfm-positive) 45%, var(--bfm-border));
	color: var(--bfm-positive);
	background: color-mix(in srgb, var(--bfm-positive) 8%, var(--bfm-surface));
}

.bfm-calculator__result[data-state="over"] {
	border-color: color-mix(in srgb, var(--bfm-warning) 45%, var(--bfm-border));
	color: var(--bfm-warning);
	background: color-mix(in srgb, var(--bfm-warning) 8%, var(--bfm-surface));
}

.bfm-calculator__result[data-state="under"] {
	border-color: color-mix(in srgb, var(--bfm-negative) 45%, var(--bfm-border));
	color: var(--bfm-negative);
	background: color-mix(in srgb, var(--bfm-negative) 8%, var(--bfm-surface));
}

/* ---------- Card grids ---------- */
.bfm-card-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
}

.bfm-card-grid--3up {
	grid-template-columns: repeat(3, 1fr);
}

.bfm-card-grid--4up {
	grid-template-columns: repeat(4, 1fr);
}

/* ---------- Fruit card ---------- */
.bfm-fruit-card {
	background: var(--bfm-surface);
	border: 1px solid var(--bfm-border);
	border-radius: var(--bfm-radius);
	overflow: hidden;
	box-shadow: var(--bfm-shadow-sm);
	transition: transform 0.15s ease, border-color 0.15s ease;
}

.bfm-fruit-card:hover {
	transform: translateY(-3px);
	border-color: var(--bfm-accent-2);
}

.bfm-fruit-card__link {
	display: block;
}

.bfm-fruit-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--bfm-surface-2);
}

.bfm-fruit-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bfm-fruit-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--bfm-font-display);
	font-size: 2.4rem;
	color: var(--bfm-text-dim);
}

.bfm-fruit-card__badge {
	position: absolute;
	top: 10px;
	left: 10px;
}

.bfm-fruit-card__body {
	padding: 16px;
}

.bfm-fruit-card__title {
	font-size: 1rem;
	margin-bottom: 10px;
}

.bfm-fruit-card__stats {
	display: flex;
	gap: 18px;
	margin: 0 0 14px;
}

.bfm-fruit-card__stats dt {
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--bfm-text-dim);
	margin-bottom: 2px;
}

.bfm-fruit-card__stats dd {
	margin: 0;
	font-size: 0.9rem;
}

.bfm-fruit-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 12px;
	border-top: 1px solid var(--bfm-border-soft);
}

/* ---------- Feature / guide cards ---------- */
.bfm-feature-card,
.bfm-guide-card {
	background: var(--bfm-surface);
	border: 1px solid var(--bfm-border);
	border-radius: var(--bfm-radius);
	padding: 22px;
	box-shadow: var(--bfm-shadow-sm);
}

.bfm-feature-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--bfm-accent) 16%, var(--bfm-surface-2));
	margin-bottom: 14px;
	font-size: 1.1rem;
}

.bfm-feature-card h3,
.bfm-guide-card h3 {
	font-size: 1rem;
	margin-bottom: 6px;
}

.bfm-feature-card p,
.bfm-guide-card p {
	margin: 0;
	font-size: 0.88rem;
}

.bfm-guide-card__tag {
	display: inline-block;
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--bfm-accent-2);
	margin-bottom: 10px;
}

.bfm-featured__more {
	margin-top: 28px;
	text-align: center;
}

/* ---------- Generic page / single ---------- */
.bfm-page {
	padding: 40px 0 64px;
}

.bfm-page-title {
	font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.4rem);
}

.bfm-page__meta {
	color: var(--bfm-text-dim);
	font-size: 0.85rem;
}

.bfm-page__thumb {
	margin: 20px 0;
	border-radius: var(--bfm-radius);
	overflow: hidden;
	border: 1px solid var(--bfm-border);
}

.bfm-page__content :is(h2, h3) {
	margin-top: 1.4em;
}

.bfm-page__content a {
	color: var(--bfm-accent-2);
	text-decoration: underline;
}

.bfm-generic-loop {
	padding: 40px 0 64px;
}

.bfm-empty-state {
	text-align: center;
	padding: 60px 20px;
}

.bfm-404 {
	padding: 72px 0;
	text-align: center;
}

/* ---------- Single fruit page ---------- */
.bfm-fruit__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	padding: 32px 0 56px;
}

.bfm-fruit__header {
	margin-bottom: 20px;
}

.bfm-fruit__title {
	font-size: clamp(1.7rem, 1.4rem + 1.3vw, 2.4rem);
	margin: 10px 0 8px;
}

.bfm-fruit__updated {
	color: var(--bfm-text-dim);
	font-size: 0.85rem;
	margin: 0;
}

.bfm-fruit__image {
	border-radius: var(--bfm-radius);
	overflow: hidden;
	border: 1px solid var(--bfm-border);
	margin-bottom: 24px;
	aspect-ratio: 16 / 9;
}

.bfm-fruit__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bfm-fruit__section {
	margin-bottom: 28px;
}

.bfm-fruit__section h2 {
	font-size: 1.25rem;
}

.bfm-fruit__stats {
	background: var(--bfm-surface);
	border: 1px solid var(--bfm-border);
	border-radius: var(--bfm-radius);
	padding: 20px;
	box-shadow: var(--bfm-shadow-sm);
	position: sticky;
	top: calc(var(--bfm-header-h) + 16px);
}

.bfm-stat-list {
	margin: 0 0 16px;
}

.bfm-stat-list__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid var(--bfm-border-soft);
}

.bfm-stat-list__row:last-child {
	border-bottom: none;
}

.bfm-stat-list__row dt {
	color: var(--bfm-text-dim);
	font-size: 0.85rem;
}

.bfm-stat-list__row dd {
	margin: 0;
	font-weight: 600;
}

.bfm-related {
	background: var(--bfm-surface);
}

/* ---------- Footer ---------- */
.bfm-footer {
	border-top: 1px solid var(--bfm-border-soft);
	background: var(--bfm-bg-elevated);
	padding: 48px 0 24px;
	margin-top: 24px;
}

.bfm-footer__top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 32px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--bfm-border-soft);
}

.bfm-footer__tagline {
	max-width: 32ch;
	margin: 8px 0 0;
	font-size: 0.88rem;
}

.bfm-footer__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
}

.bfm-footer__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bfm-footer__list a {
	color: var(--bfm-text-muted);
	font-size: 0.9rem;
}

.bfm-footer__list a:hover {
	color: var(--bfm-accent-2);
}

.bfm-footer__bottom {
	padding-top: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	justify-content: space-between;
	align-items: flex-start;
}

.bfm-footer__copyright {
	margin: 0;
	font-size: 0.82rem;
	color: var(--bfm-text-dim);
	white-space: nowrap;
}

.bfm-footer__disclaimer {
	margin: 0;
	font-size: 0.78rem;
	color: var(--bfm-text-dim);
	max-width: 60ch;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 640px) {
	.bfm-hero__inner {
		text-align: left;
	}
}

@media (min-width: 720px) {
	.bfm-values__table thead {
		display: table-header-group;
	}

	.bfm-values__row td[data-label]::before,
	.bfm-values__row th[data-label]::before {
		content: none;
	}
}

@media (max-width: 719px) {
	/* Table -> stacked card rows on mobile, keeps data usable without
	   horizontal scrolling. */
	.bfm-values__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.bfm-values__table,
	.bfm-values__table tbody,
	.bfm-values__row {
		display: block;
		width: 100%;
	}

	.bfm-values__row {
		padding: 14px 16px;
	}

	.bfm-values__row th,
	.bfm-values__row td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		padding: 6px 0;
		border-bottom: none;
		white-space: normal;
		text-align: right;
	}

	.bfm-values__row th {
		border-bottom: 1px dashed var(--bfm-border-soft);
		padding-bottom: 10px;
		margin-bottom: 4px;
		text-align: left;
		justify-content: flex-start;
	}

	.bfm-values__row td[data-label]::before {
		content: attr(data-label);
		font-size: 0.72rem;
		text-transform: uppercase;
		letter-spacing: 0.03em;
		color: var(--bfm-text-dim);
	}
}

@media (min-width: 780px) {
	.bfm-nav {
		display: block;
	}

	.bfm-menu-toggle,
	.bfm-mobile-menu {
		display: none;
	}

	.bfm-fruit__layout {
		grid-template-columns: minmax(0, 1fr) 300px;
		align-items: start;
	}

	.bfm-calculator__grid {
		grid-template-columns: 1fr 56px 1fr;
	}

	.bfm-calculator__vs {
		display: flex;
	}
}

@media (max-width: 899px) {
	.bfm-card-grid--3up,
	.bfm-card-grid--4up {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.bfm-card-grid,
	.bfm-card-grid--3up,
	.bfm-card-grid--4up {
		grid-template-columns: 1fr;
	}

	.bfm-footer__bottom {
		flex-direction: column;
	}

	.bfm-section {
		padding: 48px 0;
	}
}
