/*
 * Finobazaar Finance. Theme tokens with brand fallbacks; the same notice,
 * tag and form language as the other Finobazaar tools. Status tags always
 * carry their words; colour only supports them.
 */
.fbf {
	--fbf-blue: var(--fb-brand-blue, #105de1);
	--fbf-blue-dark: var(--fb-brand-blue-dark, #0848b8);
	--fbf-surface: var(--fb-brand-blue-surface, #f3f7ff);
	--fbf-ink: var(--fb-brand-black, #111);
	--fbf-text: var(--fb-text, #202020);
	--fbf-muted: var(--fb-text-2, #5f6368);
	--fbf-line: var(--fb-border, #e3e8f0);
	--fbf-ok: #0b6b3a; --fbf-ok-bg: #e7f5ee;
	--fbf-warn: var(--fb-warn, #7f5200); --fbf-warn-bg: var(--fb-warn-bg, #fdf0d2);
	--fbf-err: var(--fb-error, #a12a2a); --fbf-err-bg: var(--fb-error-bg, #fbeaea);
	--fbf-r: 12px;
	color: var(--fbf-text);
	margin: 0 0 2rem;
	overflow-wrap: anywhere;
}
.fbf h2 { color: var(--fbf-ink); font-size: 1.25rem; line-height: 1.3; margin: 2rem 0 .75rem; }
.fbf a:not(.fb-btn) { color: var(--fbf-blue-dark); text-underline-offset: 2px; }
.fbf a.fb-btn { text-decoration: none; }
.fbf a.fb-btn--primary, .fbf a.fb-btn--primary:hover, .fbf a.fb-btn--primary:visited { color: #fff; }
.fbf .fb-btn { max-width: 100%; white-space: normal; text-align: center; height: auto; min-height: 44px; }
.fbf a:focus-visible, .fbf button:focus-visible, .fbf input:focus-visible, .fbf select:focus-visible, .fbf textarea:focus-visible, .fbf summary:focus-visible { outline: 3px solid var(--fbf-blue); outline-offset: 2px; }
.fbf-lead { font-size: 1.0625rem; margin: 0 0 1.25rem; max-width: 70ch; }
.fbf-muted, .fbf-help, .fbf-sub { font-size: .875rem; color: var(--fbf-muted); }
.fbf-help, .fbf-sub { display: block; margin-top: .2rem; }
.fbf-crumbs { font-size: .875rem; margin: 0 0 .5rem; }
.fbf-by { color: var(--fbf-muted); margin: 0 0 1rem; }
.fbf a.fbf-tap { display: inline-flex; align-items: center; min-height: 44px; }
.fbf-list { padding-inline-start: 1.15rem; margin: 0 0 .5rem; } .fbf-list li { margin: 0 0 .45rem; max-width: 72ch; }
.fbf-empty { background: var(--fbf-surface); border-radius: var(--fbf-r); padding: .85rem 1rem; }
.fbf-none { color: var(--fbf-muted); font-size: .9375rem; }
.fbf-related { margin: 1.5rem 0 0; }

/* Notices and tags */
.fbf-notice { border-radius: var(--fbf-r); padding: .75rem 1rem; margin: 1.5rem 0 1rem; border: 1px solid #cddcf8; background: var(--fbf-surface); font-size: .9375rem; }
.fbf-notice p { margin: 0 0 .35rem; } .fbf-notice p:last-child { margin: 0; }
.fbf-notice--ok { background: var(--fbf-ok-bg); border-color: #bfe3cf; color: var(--fbf-ok); margin-top: 0; }
.fbf-notice--warn { background: var(--fbf-warn-bg); border-color: #f0dca8; color: var(--fbf-warn); margin-top: 0; }
.fbf-notice--error { background: var(--fbf-err-bg); border-color: #efc4c4; color: var(--fbf-err); margin-top: 0; }
.fbf-tag { display: inline-block; font-size: .75rem; font-weight: 600; line-height: 1.3; padding: .15rem .5rem; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.fbf-tag--ok { background: var(--fbf-ok-bg); color: var(--fbf-ok); }
.fbf-tag--warn { background: var(--fbf-warn-bg); color: var(--fbf-warn); }
.fbf-src { display: block; font-size: .8125rem; color: var(--fbf-muted); margin-top: .3rem; line-height: 1.5; }
.fbf-src .fbf-tag { margin-inline-end: .35rem; }
.fbf-stale { display: block; color: var(--fbf-warn); }
.fbf-legend { display: grid; gap: .6rem; margin: 0 0 .75rem; }
.fbf-legend > div { display: grid; grid-template-columns: minmax(12rem, max-content) 1fr; gap: .25rem 1rem; align-items: baseline; }
.fbf-legend dd { margin: 0; }

/* Hub */
.fbf ul.fbf-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .75rem; }
.fbf ul.fbf-cats > li { margin: 0; }
.fbf a.fbf-cat__link { display: flex; flex-direction: column; gap: .25rem; height: 100%; box-sizing: border-box; padding: 1rem; border: 1px solid var(--fbf-line); border-radius: var(--fbf-r); background: #fff; text-decoration: none; color: var(--fbf-text); }
.fbf a.fbf-cat__link:hover { border-color: var(--fbf-blue); box-shadow: 0 0 0 1px var(--fbf-blue); }
.fbf-cat__name { font-weight: 700; color: var(--fbf-blue-dark); font-size: 1.0625rem; }
.fbf-cat__short { font-size: .9375rem; }
.fbf-cat__count { font-size: .8125rem; color: var(--fbf-muted); margin-top: auto; padding-top: .35rem; }
.fbf ul.fbf-tools { list-style: none; margin: 0 0 .5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.fbf ul.fbf-tools > li { margin: 0; }
.fbf ul.fbf-tools a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem; border-radius: 999px; background: var(--fbf-surface); border: 1px solid #cddcf8; text-decoration: none; font-weight: 600; font-size: .9375rem; }
.fbf-cta { margin: 2rem 0 0; padding: 1rem 1.1rem; border-radius: var(--fbf-r); background: var(--fbf-surface); border: 1px solid #cddcf8; }
.fbf-cta h2 { margin-top: 0; font-size: 1.125rem; }
.fbf-cta p:last-child { margin-bottom: 0; }

/* Tables and key facts */
.fbf-table-wrap { overflow-x: auto; }
.fbf-table { border-collapse: collapse; width: 100%; margin: 0 0 .75rem; font-size: .9375rem; }
.fbf-table th, .fbf-table td { text-align: start; padding: .6rem .6rem; border-bottom: 1px solid var(--fbf-line); vertical-align: top; }
.fbf-table thead th { font-size: .8125rem; color: var(--fbf-muted); font-weight: 600; }
.fbf-table tbody th { font-weight: 600; }
.fbf-table--plain { max-width: 40rem; }
.fbf-keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem 1.5rem; margin: 0; }
.fbf-keys > div { border-top: 2px solid var(--fbf-line); padding-top: .5rem; }
.fbf-keys dt { font-size: .8125rem; color: var(--fbf-muted); font-weight: 600; }
.fbf-keys dd { margin: .2rem 0 0; font-weight: 600; color: var(--fbf-ink); }
.fbf-keys dd .fbf-src, .fbf-keys dd .fbf-sub, .fbf-keys dd .fbf-none { font-weight: 400; }
.fbf-apply { border: 1px solid var(--fbf-line); border-radius: var(--fbf-r); padding: 0 1rem .5rem; margin-top: 2rem; }
.fbf-apply h2 { margin-top: 1rem; }
.fbf ul.fbf-lenders { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .5rem 1rem; }
.fbf ul.fbf-lenders > li { margin: 0; padding: .6rem 0; border-bottom: 1px solid var(--fbf-line); }
.fbf-lender__name { font-weight: 600; }
.fbf-faqs { display: grid; gap: .5rem; }
.fbf-faq { border: 1px solid var(--fbf-line); border-radius: 10px; padding: 0 1rem; background: #fff; }
.fbf-faq > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; color: var(--fbf-ink); }
.fbf-faq > p { margin: 0 0 .9rem; }

/* Form */
.fbf-form { margin: 0 0 1.25rem; }
.fbf-step { border: 1px solid var(--fbf-line); border-radius: var(--fbf-r); background: var(--fbf-surface); padding: 1rem; margin: 0 0 1rem; min-width: 0; }
.fbf-step > legend { font-weight: 700; color: var(--fbf-ink); padding: 0 .35rem; font-size: 1.0625rem; }
.fbf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0 1rem; align-items: start; }
.fbf .fbf-row > *, .fbf .fbf-step > * + * { margin-top: 0; }
.fbf-field { margin: 0 0 .75rem; }
.fbf-field[hidden] { display: none; }
.fbf-field label, .fbf-field .fbl-sel__label { display: block; font-weight: 600; color: var(--fbf-ink); margin: 0 0 .3rem; }
.fbf-field input:not([type=checkbox]), .fbf-field select, .fbf-field textarea { min-height: 44px; padding: .5rem .75rem; border: 1px solid #c5ccd8; border-radius: 8px; background: #fff; font: inherit; width: 100%; max-width: 100%; box-sizing: border-box; }
.fbf-field [aria-invalid="true"] { border-color: var(--fbf-err); }
.fbf-err { display: block; color: var(--fbf-err); font-size: .875rem; margin-top: .25rem; }
.fbf-check { margin: 0 0 .75rem; }
.fbf-check label { display: flex; gap: .6rem; align-items: flex-start; min-height: 44px; font-size: .9375rem; }
.fbf-check input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; flex: 0 0 auto; }
.fbf-check.has-error label { color: var(--fbf-err); }
.fbf-alt { margin: .25rem 0 .75rem; }
.fbf-alt > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--fbf-blue-dark); font-weight: 600; }
.fbf-about { font-weight: 600; color: var(--fbf-ink); }
.fbf-actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin: .75rem 0; }
.fbf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 640px) {
	.fbf-step { padding: .85rem; }
	.fbf-row { grid-template-columns: 1fr; }
	.fbf-legend > div { grid-template-columns: 1fr; }
	.fbf-table thead { display: none; }
	.fbf-table tr { display: block; border-bottom: 1px solid var(--fbf-line); padding: .5rem 0; }
	.fbf-table th, .fbf-table td { display: block; border: 0; padding: .15rem 0; }
	.fbf-table td::before { content: attr(data-label); display: block; font-size: .75rem; color: var(--fbf-muted); font-weight: 600; }
}
/* Links inside small text keep a comfortable tap height. */
.fbf .fbf-src a, .fbf .fbf-crumbs a, .fbf .fbf-table th a, .fbf .fbf-by a, .fbf a.fbf-lender__name, .fbf .fbf-related a, .fbf .fbf-keys dd > a { display: inline-block; padding-block: 3px; min-height: 24px; box-sizing: border-box; }
.fbf .fbf-table { display: table; }
.fbf .fbf-table:not(.fbf-table--plain) { table-layout: fixed; }
@media (max-width: 640px) { .fbf .fbf-table, .fbf .fbf-table tbody { display: block; } .fbf .fbf-table colgroup { display: none; } }
.fbf .fbf-table col.fbf-col-name { width: 28%; }
.fbf .fbf-table .fbf-tag { white-space: normal; }
