:root {
	/* OKLCH palette: pure white surface, cobalt-tinted neutrals (hue 256), one committed accent */
	--bf-bg: oklch(1 0 0);
	--bf-surface: oklch(1 0 0);
	--bf-surface-tint: oklch(0.976 0.007 256);
	--bf-ink: oklch(0.22 0.042 256);
	--bf-ink-strong: oklch(0.18 0.038 256);
	--bf-muted: oklch(0.41 0.028 256);
	--bf-subtle: oklch(0.49 0.024 256);
	--bf-accent: oklch(0.49 0.21 261);
	--bf-accent-hover: oklch(0.42 0.20 261);
	--bf-accent-soft: oklch(0.955 0.022 258);
	--bf-ok: oklch(0.47 0.13 158);
	--bf-err: oklch(0.51 0.19 25);
	--bf-border: oklch(0.90 0.012 256);
	--bf-border-strong: oklch(0.81 0.018 256);
	--bf-radius-sm: 8px;
	--bf-radius: 12px;
	--bf-radius-lg: 14px;
	--bf-radius-pill: 999px;
	--bf-shadow-menu: 0 0 0 1px rgb(0 0 0 / 0.06), 0 4px 12px rgb(0 0 0 / 0.08);
	--bf-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--bf-font-sans: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--bf-font-display: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--bf-container: 1180px;
	--bf-gutter: clamp(16px, 3.5vw, 40px);
	--bf-header-h: 72px;
	--bf-z-sticky: 20;
	--bf-z-dropdown: 30;
	--bf-z-backdrop: 40;
	--bf-z-drawer: 50;
	--bf-z-skip: 60;
}

html[lang^="he"], html[dir="rtl"] {
	--bf-font-sans: 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
	--bf-font-display: 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; text-size-adjust: 100%; overflow-x: clip; }
body.bf-page { margin: 0; background: var(--bf-bg); color: var(--bf-ink); font-family: var(--bf-font-sans); font-size: 1rem; line-height: 1.65; font-kerning: normal; font-optical-sizing: auto; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
a { color: var(--bf-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--bf-accent); outline-offset: 3px; }
::placeholder { color: var(--bf-subtle); opacity: 1; }

.bf-sr-only, .bf-skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.bf-skip-link:focus { position: fixed; inset-block-start: 12px; inset-inline-start: 12px; z-index: var(--bf-z-skip); padding: 10px 16px; background: var(--bf-ink); color: #ffffff; border-radius: var(--bf-radius-sm); text-decoration: none; font-weight: 700; }
.bf-container { width: min(var(--bf-container), 100% - 2 * var(--bf-gutter)); margin-inline: auto; min-width: 0; }

/* Advisor Portrait */
.bf-advisor-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; outline: 1px solid rgb(0 0 0 / 0.1); outline-offset: -1px; flex-shrink: 0; background: var(--bf-surface-tint); }
.bf-advisor-photo--sm { width: 44px; height: 44px; }

/* Header & Navigation */
.bf-header { position: sticky; inset-block-start: 0; z-index: var(--bf-z-sticky); background: var(--bf-bg); border-block-end: 1px solid var(--bf-border); }
.bf-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--bf-header-h); }
.bf-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--bf-ink); text-decoration: none; flex-shrink: 0; min-width: 0; }
.bf-brand__logo { width: 34px; height: 34px; border-radius: 50%; object-fit: contain; outline: 1px solid rgb(0 0 0 / 0.08); outline-offset: -1px; flex-shrink: 0; }
.bf-brand__name { font-family: var(--bf-font-display); font-size: 1.08rem; font-weight: 700; letter-spacing: -0.02em; color: var(--bf-ink); line-height: 1.1; }

.bf-nav { display: flex; align-items: center; gap: 2px; min-width: 0; }
.bf-nav__link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: var(--bf-radius-sm); border: 0; background: transparent; color: var(--bf-muted); font: 500 0.92rem/1.2 var(--bf-font-sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 140ms ease, color 140ms ease; }
.bf-nav__link.is-current, .bf-nav__link[aria-expanded="true"] { background: var(--bf-accent-soft); color: var(--bf-accent); }

.bf-mega { position: relative; }
.bf-mega__toggle svg { transition: transform 180ms var(--bf-ease-out); }
.bf-mega__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.bf-mega__panel { position: absolute; inset-block-start: calc(100% + 10px); inset-inline-end: 0; width: min(560px, calc(100vw - 2 * var(--bf-gutter))); padding: 20px; background: var(--bf-surface); border-radius: var(--bf-radius); box-shadow: var(--bf-shadow-menu); z-index: var(--bf-z-dropdown); }
.bf-mega__panel[hidden] { display: none; }
.bf-mega__head { display: flex; align-items: center; justify-content: space-between; padding-block-end: 12px; margin-block-end: 10px; border-block-end: 1px solid var(--bf-border); }
.bf-mega__eyebrow { font-size: 0.84rem; font-weight: 600; color: var(--bf-ink); }
.bf-mega__all { font-size: 0.84rem; font-weight: 600; color: var(--bf-accent); text-decoration: none; }
.bf-mega__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; margin: 0; padding: 0; list-style: none; }
.bf-mega__link { display: block; padding: 9px 10px; border-radius: var(--bf-radius-sm); color: var(--bf-ink); font-size: 0.9rem; font-weight: 500; text-decoration: none; transition: background-color 140ms ease, color 140ms ease; }
.bf-mega__link.is-current { background: var(--bf-accent-soft); color: var(--bf-accent); }

.bf-header__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.bf-icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--bf-border); border-radius: var(--bf-radius-sm); background: var(--bf-surface); color: var(--bf-ink); cursor: pointer; transition: border-color 140ms ease, background-color 140ms ease, transform 160ms var(--bf-ease-out); }
.bf-lang-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--bf-border); border-radius: var(--bf-radius-sm); background: var(--bf-surface); color: var(--bf-ink); font-size: 0.86rem; font-weight: 600; text-decoration: none; transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, transform 160ms var(--bf-ease-out); }
.bf-lang-pill__short { display: none; }

.bf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--bf-radius-pill); border: 1px solid transparent; font: 600 0.9rem/1.2 var(--bf-font-sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 160ms var(--bf-ease-out); }
.bf-btn svg { margin-inline-start: -2px; }
.bf-btn--lg { min-height: 48px; padding: 0 24px; font-size: 0.95rem; }
.bf-btn--primary { background: var(--bf-accent); color: #ffffff; }
.bf-btn--outline { background: var(--bf-surface); border-color: var(--bf-border-strong); color: var(--bf-ink); }
.bf-btn--block { width: 100%; }
.bf-btn:active, .bf-icon-btn:active, .bf-lang-pill:active, .bf-page-btn:active { transform: scale(0.97); }
.bf-menu-toggle { display: none; }
.bf-header-search { padding-block: 14px; border-block-start: 1px solid var(--bf-border); background: var(--bf-surface); }
.bf-header-search[hidden] { display: none; }

/* Search Bar & Chips */
.bf-search-bar { display: flex; align-items: stretch; width: 100%; min-width: 0; background: var(--bf-surface); border: 1px solid var(--bf-border-strong); border-radius: var(--bf-radius-pill); padding: 4px; gap: 6px; }
.bf-search-bar:focus-within { border-color: var(--bf-accent); outline: 2px solid oklch(0.49 0.21 261 / 0.18); }
.bf-search-bar input[type="search"] { flex: 1 1 auto; width: 0; min-width: 0; min-height: 42px; padding-inline: 16px 8px; border: 0; background: transparent; color: var(--bf-ink); font: 500 0.95rem/1.4 var(--bf-font-sans); }
.bf-search-bar input[type="search"]:focus { outline: none; }
.bf-search-bar button { flex-shrink: 0; min-height: 42px; padding-inline: 22px; }

.bf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bf-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 13px; border-radius: var(--bf-radius-pill); background: var(--bf-surface); border: 1px solid var(--bf-border); color: var(--bf-muted); font-size: 0.84rem; font-weight: 500; text-decoration: none; transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease; }

/* Mobile Drawer */
.bf-drawer-backdrop { position: fixed; inset: 0; z-index: var(--bf-z-backdrop); background: oklch(0.16 0.03 256 / 0.42); }
.bf-drawer { position: fixed; inset-block: 0; inset-inline-end: 0; z-index: var(--bf-z-drawer); width: min(340px, 88vw); background: var(--bf-bg); border-inline-start: 1px solid var(--bf-border); display: flex; flex-direction: column; }
.bf-drawer[hidden], .bf-drawer-backdrop[hidden] { display: none; }
.bf-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-block-end: 1px solid var(--bf-border); }
.bf-drawer__body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 18px; }
.bf-drawer__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.bf-drawer__link { display: block; padding: 11px 12px; border-radius: var(--bf-radius-sm); color: var(--bf-ink); font-weight: 500; text-decoration: none; }
.bf-drawer__link.is-current { background: var(--bf-accent-soft); color: var(--bf-accent); font-weight: 600; }
.bf-drawer__footer { margin-block-start: auto; padding-block-start: 16px; border-block-start: 1px solid var(--bf-border); display: grid; gap: 10px; }
.bf-drawer__lang { text-align: center; padding: 10px; font-weight: 600; color: var(--bf-muted); text-decoration: none; }

/* Shared Section Rhythm */
.bf-section { padding-block: clamp(44px, 6vw, 80px); }
.bf-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-block-end: 28px; }
.bf-section__title { margin: 0; font-family: var(--bf-font-display); font-size: clamp(1.55rem, 2.6vw, 2.1rem); font-weight: 700; line-height: 1.18; letter-spacing: -0.025em; color: var(--bf-ink); }
html[dir="rtl"] .bf-section__title { letter-spacing: -0.012em; }
.bf-section__more { font-size: 0.92rem; font-weight: 600; color: var(--bf-accent); text-decoration: none; white-space: nowrap; }

/* Footer */
.bf-footer { background: var(--bf-bg); color: var(--bf-muted); border-block-start: 1px solid var(--bf-border); }
.bf-footer__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-block: clamp(40px, 5vw, 60px); }
.bf-footer__about { margin: 14px 0 0; max-width: 38ch; font-size: 0.92rem; line-height: 1.6; color: var(--bf-muted); }
.bf-footer__heading { margin: 0 0 14px; font-size: 0.88rem; font-weight: 700; color: var(--bf-ink); }
.bf-footer__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.bf-footer__col a { color: var(--bf-muted); font-size: 0.9rem; text-decoration: none; }
.bf-footer__bottom { border-block-start: 1px solid var(--bf-border); padding-block: 18px; }
.bf-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; font-size: 0.82rem; color: var(--bf-subtle); }

.bf-mobile-bar { display: none; }

@media (hover: hover) and (pointer: fine) {
	a:hover { color: var(--bf-ink); }
	.bf-nav__link:hover { background: var(--bf-surface-tint); color: var(--bf-ink); }
	.bf-mega__link:hover, .bf-drawer__link:hover { background: var(--bf-accent-soft); color: var(--bf-accent); }
	.bf-icon-btn:hover { border-color: var(--bf-border-strong); background: var(--bf-surface-tint); }
	.bf-lang-pill:hover { border-color: var(--bf-accent); color: var(--bf-accent); background: var(--bf-accent-soft); }
	.bf-btn--primary:hover { background: var(--bf-accent-hover); color: #ffffff; }
	.bf-btn--outline:hover { border-color: var(--bf-ink); color: var(--bf-ink); background: var(--bf-surface-tint); }
	.bf-chip:hover { border-color: var(--bf-accent); color: var(--bf-accent); background: var(--bf-accent-soft); }
	.bf-section__more:hover, .bf-footer__col a:hover { color: var(--bf-ink); }
}

@media (max-width: 1080px) {
	.bf-nav, .bf-header__cta { display: none; }
	.bf-menu-toggle { display: inline-grid; }
}

@media (max-width: 820px) {
	.bf-footer__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
	:root { --bf-header-h: 64px; }
	body.bf-page { padding-block-end: calc(72px + env(safe-area-inset-bottom)); }
	.bf-brand__logo { width: 32px; height: 32px; }
	.bf-brand__name { font-size: 1.02rem; }
	.bf-lang-pill { padding-inline: 11px; }
	.bf-lang-pill__full { display: none; }
	.bf-lang-pill__short { display: inline; }
	.bf-mobile-bar { position: fixed; inset-block-end: 0; inset-inline: 0; z-index: var(--bf-z-sticky); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px var(--bf-gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--bf-bg); border-block-start: 1px solid var(--bf-border); transition: transform 180ms var(--bf-ease-out), opacity 180ms ease; }
	.bf-mobile-bar.is-hidden { transform: translateY(100%); opacity: 0; pointer-events: none; }
}

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