.bf-widget {
  --bf-ink: #152e26;
  --bf-green: #124b3c;
  --bf-leaf: #dff2ac;
  --bf-line: #d6dfd5;
  color: var(--bf-ink);
  font-family: "DM Sans", Arial, sans-serif;
  margin: clamp(24px, 5vw, 64px) 0;
  scroll-margin-top: 85px;
  min-width: 0;
}
.bf-widget *, .bf-widget *::before, .bf-widget *::after { box-sizing: border-box; }
.bf-widget [hidden] { display: none !important; }
.bf-finder, .bf-workbench { border: 1px solid var(--bf-line); border-radius: 20px; padding: clamp(18px, 3.3vw, 44px); background: #fffef9; min-width: 0; }
.bf-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 32px; margin: 0 0 24px; }
.bf-widget .bf-header h2 { font-family: "Instrument Serif", Georgia, serif; color: var(--bf-ink); font-weight: 400; line-height: .99; font-size: clamp(34px, 4.2vw, 57px); letter-spacing: -.035em; margin: 0 0 10px; }
.bf-header p, .bf-results-head p { max-width: 64ch; line-height: 1.45; margin: 0; font-size: 15px; color: #495e51; }
.bf-tool-link, .bf-model-link, .bf-bottom a { color: var(--bf-green); font-weight: 700; text-underline-offset: 3px; }
.bf-tool-link { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; padding: 7px 0; white-space: nowrap; }
.bf-selection { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.bf-selection .bf-field:has(+ [hidden]) { grid-column: 1/-1; }
.bf-field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 700; line-height: 1.3; min-width: 0; margin: 0; }
.bf-field select, .bf-field input { appearance: auto; font: inherit; color: var(--bf-ink); border-radius: 7px; min-width: 0; width: 100%; }
.bf-field select, .bf-input, .bf-money { background-color: #fff; border: 1px solid #a8baa9; }
.bf-field select { padding: 11px 8px; min-height: 46px; font-size: 15px; font-weight: 600; }
.bf-money, .bf-input { display: flex; align-items: center; border-radius: 7px; gap: 4px; padding-inline: 11px; min-height: 46px; }
.bf-widget .bf-money input, .bf-widget .bf-input input { margin: 0; padding: 9px 0; border: 0; border-radius: 0; background: transparent; font-size: 16px; font-weight: 650; line-height: 1.2; outline: none; box-shadow: none; min-height: 35px; }
.bf-money b { font-size: 17px; }
.bf-field i { font-style: normal; font-size: 12px; color: #4b6252; }
.bf-widget :focus-visible { outline: 3px solid #4b825f; outline-offset: 2px; }
.bf-money:focus-within, .bf-input:focus-within { outline: 3px solid #4b825f; outline-offset: 2px; }
.bf-field select:disabled, .bf-input:has(input:disabled) { opacity: 1; background-color: #edf0e9; color: #495d4d; }
.bf-results-head, .bf-bottom, .bf-brand, .bf-actions { display: flex; align-items: center; }
.bf-results-head { justify-content: space-between; gap: 12px; margin: 25px 0 3px; }
.bf-results-head h3 { font-size: clamp(19px, 2.1vw, 26px); line-height: 1.15; margin: 0; letter-spacing: -.03em; font-weight: 700; }
.bf-results-head > span { font-size: 13px; color: #4b6051; white-space: nowrap; }
.bf-disclose { font-size: 12px; color: #495d4e; line-height: 1.45; margin: 8px 0 12px; }
.bf-disclose a, .bf-offer a, .bf-uncertain a, .bf-formula a, .bf-source-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.bf-results { border-top: 1px solid var(--bf-line); }
.bf-row { display: grid; grid-template-columns: minmax(165px,.82fr) minmax(0,1.48fr) minmax(105px,auto); align-items: start; gap: 12px 24px; padding: 17px 0; border-bottom: 1px solid var(--bf-line); }
.bf-brand { gap: 10px; align-items: center; }
.bf-brand .logo-stage { width: 58px; height: 44px; border-radius: 7px; flex: 0 0 auto; overflow: hidden; }
.bf-brand .brand-image { max-width: 90%; max-height: 85%; }
.bf-brand > div { display: grid; gap: 2px; }
.bf-brand a { font-weight: 700; color: var(--bf-ink); font-size: 14px; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.bf-brand small { font-size: 11px; color: #5d6c60; }
.bf-offer h4 { font-size: 16px; font-weight: 700; line-height: 1.25; margin: 0 0 4px; color: var(--bf-ink); }
.bf-offer p, .bf-uncertain li { font-size: 13px; line-height: 1.4; margin: 4px 0; }
.bf-offer p span, .bf-exception { color: #536354; }
.bf-credit { color: #235642; }
.bf-widget summary { cursor: pointer; font-size: 12px; color: var(--bf-green); font-weight: 650; padding: 5px 0; text-underline-offset: 3px; }
.bf-widget summary:hover { text-decoration: underline; }
.bf-offer .bf-citation { color: #566557; font-size: 12px; }
.bf-citation cite { display: block; margin-top: 4px; font-style: normal; overflow-wrap: anywhere; }
.bf-actions { flex-direction: column; align-items: stretch; gap: 6px; }
.bf-claim, .bf-bottom .bf-footer-link { display: inline-flex; justify-content: center; align-items: center; gap: 9px; text-decoration: none; border-radius: 7px; padding: 10px 14px; background: var(--bf-leaf); color: #16372a; font-size: 14px; font-weight: 750; line-height: 1.3; }
.bf-claim:hover, .bf-bottom .bf-footer-link:hover { background: #d1e98e; }
.bf-model-link { font-size: 11px; text-align: center; }
.bf-more { border: 1px solid #97ad96; padding: 9px 16px; background: transparent; color: var(--bf-green); margin: 14px 0 0; border-radius: 7px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.bf-more:hover { background: #eff4e8; }
.bf-empty { margin: 0; padding: 20px 0; font-size: 15px; }
.bf-uncertain { margin-top: 12px; }
.bf-uncertain ul { padding-left: 20px; margin-block: 6px; }
.bf-bottom { justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--bf-line); font-size: 13px; }
.bf-workbench { margin-top: 24px; scroll-margin-top: 90px; }
.bf-math-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(260px,.75fr); gap: clamp(15px,3vw,30px); align-items: start; }
.bf-model { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; margin: 0; }
.bf-full { grid-column: 1 / -1; }
.bf-source-note { margin: -5px 0 1px; font-size: 13px; line-height: 1.5; color: #536354; }
.bf-math-output { background: #163c31; color: #f3f6e8; border-radius: 13px; padding: clamp(18px, 2.6vw, 30px); overflow-wrap: anywhere; }
.bf-math-output > span { font-size: 14px; font-weight: 700; }
.bf-math-output output { display: block; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(38px, 4.4vw, 59px); line-height: 1.1; color: var(--bf-leaf); margin: 10px 0; }
.bf-math-output p { font-size: 13px; margin: 0; line-height: 1.5; color: #e4ecde; }
.bf-math-output dl { margin: 20px 0; }
.bf-math-output dl div { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid #547465; font-size: 13px; }
.bf-math-output dd { margin: 0; font-weight: 700; text-align: right; }
.bf-formula { margin-top: 20px; border-top: 1px solid var(--bf-line); padding-top: 12px; }
.bf-formula summary { font-size: 15px; }
.bf-formula p { max-width: 72ch; font-size: 14px; line-height: 1.5; }
@media (max-width: 760px) {
  .bf-header { flex-wrap: wrap; gap: 8px; }
  .bf-tool-link { padding: 0; }
  .bf-math-grid { grid-template-columns: 1fr; }
  .bf-row { grid-template-columns: minmax(128px,.7fr) minmax(0,1fr); }
  .bf-actions { grid-column: 2; flex-direction: row; align-items: center; flex-wrap: wrap; }
}
@media (max-width: 530px) {
  .bf-finder, .bf-workbench { padding: 16px; border-radius: 14px; }
  .bf-row { grid-template-columns: 1fr; gap: 7px; }
  .bf-actions { grid-column: 1; }
  .bf-brand .logo-stage { width: 44px; height: 34px; }
  .bf-offer h4 { font-size: 16px; }
  .bf-bottom { align-items: flex-start; flex-direction: column; }
  .bf-model { gap: 11px; }
}
@media (max-width: 350px) {
  .bf-results-head { align-items: flex-start; flex-direction: column; }
  .bf-model { grid-template-columns: 1fr; }
}

.directory-home .bf-widget {margin:clamp(12px,2vw,24px) 0 32px}
.bf-finder {background:transparent;border:0;padding:0}
.bf-finder .bf-hero {
  display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,.88fr);align-items:center;
  gap:clamp(24px,5vw,80px);margin:0;border-radius:20px;padding:clamp(24px,4vw,54px);
  color:#fbf8eb;background:linear-gradient(90deg,#092d2be8 5%,#122d298f 53%,#152c29cc),url("/assets/roulette-hero.webp") center 54%/cover;
}
.bf-finder .bf-hero::before {display:none}
.bf-intro {max-width:450px}
.bf-intro #bf-finder-title {margin:0;color:#fff9e6;font:400 clamp(46px,5.8vw,84px)/.98 "Instrument Serif",Georgia,serif;letter-spacing:-.045em;text-wrap:balance}
.bf-hero .bf-intro p {margin:15px 0;color:#f3f3e5;font:500 17px/1.45 "DM Sans",sans-serif}
.bf-intro .bf-tool-link {min-height:44px;color:#ffe19f;font-size:15px}
.bf-console {background:#fffcf2;border:1px solid #dfd9c7;border-radius:15px;padding:clamp(16px,2vw,28px);min-width:0;color:#19372e;box-shadow:0 8px 26px #061b1a38}
.bf-console .bf-field {font-size:14px;gap:5px}
.bf-field select {width:100%;cursor:pointer}
.bf-budget {grid-column:1/-1}
.bf-budget label {display:flex;align-items:center;gap:8px;margin:0 0 5px;font-size:15px;font-weight:700}
.bf-budget label small {color:#556b60;font-size:12px}
.bf-stepper {display:flex;align-items:center;gap:6px;padding:4px;border:1px solid #a8baa9;border-radius:10px;background:white}
.bf-stepper button,.bf-presets button {border:1px solid #b4c3b4;background:#f3f7ee;color:#154a39;border-radius:7px;font:700 16px/1 "DM Sans",sans-serif;cursor:pointer}
.bf-stepper button {width:46px;height:44px;flex:none;font-size:24px}
.bf-stepper button:disabled {opacity:.45;cursor:default}
.bf-stepper>span {display:flex;align-items:center;justify-content:center;gap:3px;flex:1;min-width:0;color:var(--bf-ink);font-size:22px}
.bf-stepper input {appearance:textfield;min-width:0;width:7ch;border:0;background:transparent;color:inherit;font:700 22px/1.25 "DM Sans",sans-serif;padding:3px}
.bf-stepper input::-webkit-inner-spin-button,.bf-stepper input::-webkit-outer-spin-button {-webkit-appearance:none}
.bf-presets {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:8px 0 0}
.bf-presets button {min-height:44px;background:#fffef8}
.bf-presets [aria-pressed=true] {background:#daecdf;border:2px solid #226249}
.bf-presets button:hover,.bf-stepper button:enabled:hover {background:#dfebdc}
.bf-preview {display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:14px 0 8px}
.bf-preview strong {font-size:17px;line-height:1.25}
.bf-preview a {flex:none;color:#245740;font-size:13px;text-underline-offset:3px}
.bf-console .bf-primary,.bf-claim,.bf-bottom .bf-footer-link {
  display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:46px;
  padding:10px 16px;border-radius:9px;border:1px solid #084335;background:#136346;color:white;
  box-shadow:0 3px 0 #073f31;text-decoration:none;font:700 15px/1.25 "DM Sans",sans-serif;cursor:pointer
}
.bf-console .bf-primary {width:100%;justify-content:space-between;padding-inline:18px;min-height:50px;font-size:17px}
.bf-primary>span:last-child {font-size:22px}
.bf-console .bf-primary:hover,.bf-claim:hover,.bf-bottom .bf-footer-link:hover {background:#0d503a;color:#fff}
.bf-console .bf-primary:not([rel]) {background:#fffef8;color:#284c3c;border-color:#9cae9f;box-shadow:none}
.bf-console .bf-primary:active,.bf-claim:active,.bf-bottom .bf-footer-link:active {transform:translateY(2px);box-shadow:none}
.bf-partner-note {display:block;text-align:center;margin-top:10px;font-size:12px;color:#4e6256}.bf-partner-note a {color:inherit;text-underline-offset:2px}
.bf-results-head {align-items:center;margin:24px 0 12px}
.bf-results-head small {display:block;margin-top:3px;color:#526358;font-size:14px}
.bf-results {border:0;display:grid;gap:10px}
.bf-row {background:#fffefa;border:1px solid #c9d6c9;border-radius:12px;padding:clamp(15px,1.8vw,24px);align-items:center}
.bf-brand .logo-stage {width:66px;height:54px}
.bf-brand a {font-size:17px;text-decoration:none}.bf-brand a:hover {text-decoration:underline}
.bf-brand small,.bf-model-link {font-size:13px}
.bf-offer h4 {font-size:clamp(18px,1.45vw,23px);margin-bottom:7px}
.bf-offer p,.bf-offer summary {font-size:14px}
.bf-actions {gap:9px}
.bf-widget .bf-model-link {display:inline-flex;align-items:center;justify-content:center;min-height:44px}
.bf-more {min-height:44px;background:#fffefa}
.featured-heading {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}
.featured-heading h2 {margin:0}
.featured-heading .home-find {background:#f3f4ed;border-color:#ccdacd}
.featured-heading .home-find label {color:#183e31}
@media(max-width:760px){
  .bf-finder .bf-hero {grid-template-columns:1fr;gap:14px;padding:16px}
  .bf-intro {max-width:100%}
  .bf-intro #bf-finder-title {font-size:clamp(36px,7vw,52px);text-wrap:initial}
  .bf-hero .bf-intro p {margin:6px 0 0;font-size:15px}
  .bf-intro .bf-tool-link {min-height:35px}
  .bf-actions {align-items:stretch}
}
@media(max-width:530px){
  .bf-finder .bf-hero {padding:14px;gap:9px;border-radius:15px}
  .bf-console {padding:13px}
  .bf-console .bf-field select {font-size:16px;padding-inline:4px}
  .bf-results-head {flex-direction:row;align-items:center}
  .bf-results-head>span {white-space:normal;text-align:right}
  .bf-row {padding:16px;gap:13px;grid-template-columns:minmax(0,1fr)}
  .bf-offer h4 {font-size:20px}
  .bf-actions {display:grid;grid-template-columns:1fr}
  .bf-offer summary {display:list-item;min-height:44px;padding-block:12px}
  .bf-brand .logo-stage {width:60px;height:48px}
  .bf-model-link {justify-self:center}
  .bf-stepper>span {font-size:20px}.bf-stepper button {width:40px}
  .featured-heading .home-find {width:100%}
}
