/*
 * Finobazaar Associates: sign-in, registration, dashboard, find a professional.
 * Uses the theme's tokens (green #0B5F55, blue #1B4A63, gold #C68A2E, IBM
 * Plex Sans with Devanagari fallbacks) with the same values as fallbacks.
 * Mobile first; everything works without associates.js.
 */
.fba {
	--fba-green: var(--fb-brand-green, #0b5f55);
	--fba-green-dark: var(--fb-brand-green-dark, #084a42);
	--fba-green-light: var(--fb-brand-green-light, #e3f0ed);
	--fba-surface: var(--fb-brand-green-surface, #f1f7f5);
	--fba-navy: var(--fb-brand-navy, #1b4a63);
	--fba-gold: var(--fb-brand-gold, #c68a2e);
	--fba-gold-ink: var(--fb-brand-gold-ink, #8a5a12);
	--fba-text: var(--fb-text, #1e2a30);
	--fba-muted: var(--fb-text-2, #56626a);
	--fba-line: var(--fb-border, #e6e1d7);
	--fba-white: #fff;
	--fba-r: var(--fb-r-md, 12px);
	color: var(--fba-text);
	font-family: var(--fb-font, "IBM Plex Sans", "IBM Plex Sans Devanagari", "Noto Sans Devanagari", system-ui, sans-serif);
}
.fba p { margin: 0 0 .75rem; }
.fba-muted { color: var(--fba-muted); }
.fba-lead { font-size: 1.0625rem; color: var(--fba-muted); max-width: 44rem; }
.fba-link { color: var(--fba-green); font-weight: 600; text-underline-offset: 3px; }
.fba-h2 { font-size: 1.375rem; line-height: 1.25; color: var(--fb-heading, #13303f); margin: 1.5rem 0 .75rem; }
.fba-h3 { font-size: 1.0625rem; color: var(--fb-heading, #13303f); margin: 1.5rem 0 .5rem; }
.fba-fineprint { font-size: .8125rem; color: var(--fba-muted); margin-top: 1rem; }
.fba-row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin: .25rem 0 1rem; }
.fba-row--between { justify-content: space-between; }
.fba-inline { display: inline-flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 .5rem .5rem 0; }

/* Auth pages */
.fba-auth { max-width: 30rem; margin: 0 auto 3rem; }
.fba-auth--wide { max-width: 56rem; }
.fba-card { background: var(--fba-white); border: 1px solid var(--fba-line); border-top: 3px solid var(--fba-green); border-radius: var(--fba-r); padding: 1.25rem; box-shadow: var(--fb-sh-1, 0 1px 2px rgba(17,34,68,.06)); }
.fba-card--flat { border-top-width: 1px; }
.fba-card__lead { color: var(--fba-muted); }
.fba-card__alt { border-top: 1px solid var(--fba-line); margin-top: 1.25rem; padding-top: 1rem; text-align: center; }
.fba-card__alt p { margin-bottom: .5rem; color: var(--fba-muted); }
@media (min-width: 40em) { .fba-card { padding: 2rem; } }

.fba-form .fba-field { margin: 0 0 1rem; }
.fba-form .fb-input, .fba-form select, .fba-form textarea { width: 100%; max-width: 100%; box-sizing: border-box; min-height: 44px; }
.fba-form textarea { min-height: 5rem; }
.fba-field-error { color: var(--fb-error, #a12a2a); font-size: .875rem; margin: .25rem 0 0; }
.fba-form [aria-invalid="true"] { border-color: var(--fb-error, #a12a2a); }
.fba-submit { min-height: 48px; margin-top: .5rem; }
.fba-submit[aria-busy="true"] { opacity: .75; cursor: progress; }
.fba-submit[aria-busy="true"]::after { content: ""; display: inline-block; width: 1em; height: 1em; margin-inline-start: .5em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -.15em; animation: fba-spin .8s linear infinite; }
@keyframes fba-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fba-submit[aria-busy="true"]::after { animation: none; } }

.fba-pw { position: relative; }
.fba-pw .fb-input { padding-inline-end: 4.5rem; }
.fba-pw__toggle { position: absolute; inset-inline-end: .25rem; top: 50%; transform: translateY(-50%); min-height: 36px; min-width: 44px; padding: 0 .75rem; border: 0; background: transparent; color: var(--fba-green); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; border-radius: 6px; }
.fba-pw__toggle:focus-visible { outline: 3px solid var(--fb-focus, #084a42); outline-offset: 1px; }
.fba-meter { font-size: .8125rem; color: var(--fba-muted); margin: .35rem 0 0; }
.fba-meter[data-level]::before { content: ""; display: block; height: 4px; border-radius: 2px; margin-bottom: .35rem; background: linear-gradient(90deg, var(--fba-bar, #a12a2a) var(--fba-fill, 25%), var(--fba-line) 0); }
.fba-meter[data-level="1"] { --fba-bar: #a12a2a; --fba-fill: 25%; }
.fba-meter[data-level="2"] { --fba-bar: var(--fba-gold-ink); --fba-fill: 50%; }
.fba-meter[data-level="3"] { --fba-bar: var(--fba-green); --fba-fill: 75%; }
.fba-meter[data-level="4"] { --fba-bar: var(--fba-green-dark); --fba-fill: 100%; }

.fba-prefix { display: flex; align-items: stretch; }
.fba-prefix > span { display: flex; align-items: center; padding: 0 .75rem; border: 1px solid var(--fb-line-strong, #cec6b7); border-inline-end: 0; border-radius: var(--fb-r-btn, 10px) 0 0 var(--fb-r-btn, 10px); background: var(--fba-surface); color: var(--fba-muted); font-weight: 600; }
.fba-prefix .fb-input { border-start-start-radius: 0; border-end-start-radius: 0; }

.fba-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Notices and status pills */
.fba-notice { border-radius: var(--fba-r); padding: .75rem 1rem; margin: 0 0 1rem; border-inline-start: 4px solid var(--fba-green); background: var(--fba-surface); }
.fba-notice p { margin: 0; }
.fba-notice--success { border-color: var(--fb-ok, #1e6b3f); background: var(--fb-ok-bg, #e9f5ee); }
.fba-notice--error { border-color: var(--fb-error, #a12a2a); background: var(--fb-error-bg, #fbeaea); }
.fba-status { display: inline-block; font-size: .75rem; font-weight: 600; line-height: 1.4; padding: .15rem .55rem; border-radius: 999px; background: var(--fb-na-bg, #f1f3f5); color: var(--fb-na, #5f6368); vertical-align: middle; white-space: nowrap; }
.fba-status--verified, .fba-status--approved, .fba-status--active, .fba-status--accepted { background: var(--fb-ok-bg, #e9f5ee); color: var(--fb-ok, #1e6b3f); }
.fba-status--pending, .fba-status--under_review, .fba-status--received, .fba-status--email_needed, .fba-status--mobile_needed, .fba-status--paused { background: var(--fb-warn-bg, #fdf0d2); color: var(--fb-warn, #7f5200); }
.fba-status--rejected, .fba-status--suspended { background: var(--fb-error-bg, #fbeaea); color: var(--fb-error, #a12a2a); }
.fba-status--unavailable, .fba-status--none, .fba-status--draft { background: var(--fb-user-bg, #eef2f7); color: var(--fb-user, #3d4f66); }
.fba-tag { font-size: .75rem; font-weight: 600; color: var(--fba-gold-ink); border: 1px solid var(--fba-gold); border-radius: 999px; padding: .05rem .5rem; }
.fba-note { color: var(--fba-text); }
.fba-note--box { border-inline-start: 4px solid var(--fba-gold); background: var(--fb-gold-50, #faf0df); padding: .75rem 1rem; border-radius: var(--fba-r); margin: 1rem 0; }

/* Registration */
.fba-step { border: 0; padding: 0; margin: 0 0 1.75rem; min-width: 0; }
.fba-step__title { font-size: 1.125rem; font-weight: 600; color: var(--fb-heading, #13303f); margin: 0 0 .5rem; padding: 0; display: flex; align-items: center; gap: .5rem; }
.fba-step__no { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--fba-green); color: #fff; font-size: .875rem; }
.fba-types { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 36em) { .fba-types { grid-template-columns: 1fr 1fr; } }
.fba-type { position: relative; display: block; cursor: pointer; }
.fba-type__input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.fba-type__body { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "icon name pick" "icon text text"; gap: .15rem .75rem; height: 100%; box-sizing: border-box; padding: 1rem; border: 1px solid var(--fba-line); border-radius: var(--fba-r); background: var(--fba-white); transition: border-color .15s, background-color .15s; }
.fba-type__icon { grid-area: icon; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 10px; background: var(--fba-surface); color: var(--fba-green); }
.fba-type__icon svg { width: 22px; height: 22px; }
.fba-type__name { grid-area: name; font-weight: 600; color: var(--fb-heading, #13303f); }
.fba-type__text { grid-area: text; font-size: .875rem; color: var(--fba-muted); }
.fba-type__pick { grid-area: pick; font-size: .8125rem; font-weight: 600; color: var(--fba-green); }
.fba-type__on { display: none; }
.fba-type__input:checked + .fba-type__body { border-color: var(--fba-green); background: var(--fba-green-light); box-shadow: inset 0 0 0 1px var(--fba-green); }
.fba-type__input:checked + .fba-type__body .fba-type__on { display: inline; }
.fba-type__input:checked + .fba-type__body .fba-type__off { display: none; }
.fba-type__input:checked + .fba-type__body .fba-type__icon { background: var(--fba-green); color: #fff; }
.fba-type__input:focus-visible + .fba-type__body { outline: 3px solid var(--fb-focus, #084a42); outline-offset: 2px; }
.fba-role { border-top: 1px solid var(--fba-line); padding-top: 1rem; margin-top: 1rem; }
.fba-role__title { font-size: 1rem; margin: 0 0 .5rem; color: var(--fba-navy); }
.fba-js .fba-role[hidden] { display: none; }
.fba-grid { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 40em) { .fba-grid { grid-template-columns: 1fr 1fr; } .fba-field--wide { grid-column: 1 / -1; } }
.fba-days { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.fba-days__list { display: flex; flex-wrap: wrap; gap: .35rem; margin: .25rem 0 .75rem; }
.fba-day { position: relative; }
.fba-day input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fba-day span { display: inline-grid; place-items: center; min-width: 44px; min-height: 40px; padding: 0 .5rem; border: 1px solid var(--fba-line); border-radius: 8px; font-size: .875rem; background: var(--fba-white); }
.fba-day input:checked + span { background: var(--fba-green); border-color: var(--fba-green); color: #fff; }
.fba-day input:focus-visible + span { outline: 3px solid var(--fb-focus, #084a42); outline-offset: 2px; }
.fba-time { display: inline-flex; align-items: center; gap: .5rem; }
.fba-time .fb-input { width: auto; min-width: 8rem; }
.fba-terms { margin: 0 0 1rem; }
.fba-consent { display: flex; align-items: flex-start; gap: .5rem; margin: .5rem 0; color: var(--fba-text); font-size: .875rem; }
.fba-consent input { margin-top: .2rem; flex: none; }

/* Account status and verification */
.fba-verify { display: grid; gap: .75rem; margin: 1rem 0; }
@media (min-width: 40em) { .fba-verify { grid-template-columns: 1fr 1fr; } }
.fba-verify__item { border: 1px solid var(--fba-line); border-radius: var(--fba-r); padding: 1rem; background: var(--fba-white); }
.fba-verify__title { font-size: 1rem; margin: 0 0 .25rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.fba-code .fb-input { width: 8rem; min-height: 40px; letter-spacing: .2em; }
.fba-next { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1rem; }

/* Dashboard */
.fba-dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
@media (min-width: 60em) { .fba-dash { grid-template-columns: 15rem minmax(0, 1fr); align-items: start; } }
.fba-dash__nav { min-width: 0; background: var(--fba-white); border: 1px solid var(--fba-line); border-radius: var(--fba-r); padding: .75rem; }
.fba-dash__who { display: flex; flex-direction: column; gap: .35rem; padding: .25rem .5rem .75rem; border-bottom: 1px solid var(--fba-line); margin-bottom: .5rem; }
.fba-dash__who .fba-status { align-self: flex-start; }
.fba-dash__nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; overflow-x: auto; }
@media (min-width: 60em) { .fba-dash__nav ul { flex-direction: column; overflow: visible; } }
.fba-dash__nav li { margin: 0; flex: none; }
.fba-dash__nav a, .fba-dash__off { display: block; padding: .6rem .75rem; min-height: 24px; border-radius: 8px; color: var(--fba-text); text-decoration: none; font-size: .9375rem; white-space: nowrap; }
.fba-dash__nav a:hover { background: var(--fba-surface); }
.fba-dash__nav a[aria-current="page"] { background: var(--fba-green-light); color: var(--fba-green-dark); font-weight: 600; box-shadow: inset 3px 0 0 var(--fba-green); }
.fba-dash__off { color: var(--fba-muted); }
.fba-dash__off small { display: block; font-size: .75rem; }
.fba-dash__main { min-width: 0; }
.fba-dash__main > .fba-h2:first-of-type { margin-top: 0; }
.fba-stage { border-radius: var(--fba-r); padding: 1rem 1.25rem; background: var(--fba-surface); border-inline-start: 4px solid var(--fba-green); margin-bottom: 1rem; }
.fba-stage--pending, .fba-stage--under_review, .fba-stage--email_needed, .fba-stage--mobile_needed { border-color: var(--fba-gold); background: var(--fb-gold-50, #faf0df); }
.fba-stage--rejected, .fba-stage--suspended { border-color: var(--fb-error, #a12a2a); background: var(--fb-error-bg, #fbeaea); }
.fba-stage__label { font-size: .8125rem; color: var(--fba-muted); margin: 0; }
.fba-stage__value { font-size: 1.375rem; font-weight: 600; color: var(--fb-heading, #13303f); margin: 0 0 .25rem; }
.fba-facts { display: grid; gap: .5rem; grid-template-columns: 1fr; margin: 0 0 1rem; }
@media (min-width: 40em) { .fba-facts { grid-template-columns: 1fr 1fr; } }
.fba-facts > div { border: 1px solid var(--fba-line); border-radius: 10px; padding: .65rem .85rem; background: var(--fba-white); }
.fba-facts dt { font-size: .8125rem; color: var(--fba-muted); margin: 0 0 .15rem; }
.fba-facts dd { margin: 0; }
.fba-meterbar { display: inline-block; width: 8rem; height: 8px; border-radius: 4px; background: var(--fba-line); vertical-align: middle; overflow: hidden; }
.fba-meterbar > span { display: block; height: 100%; background: var(--fba-green); }
.fba-list { margin: 0 0 1rem; padding-inline-start: 1.25rem; }
.fba-list li { margin: 0 0 .35rem; }
.fba-svcs { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .75rem; }
.fba-svc { border: 1px solid var(--fba-line); border-radius: var(--fba-r); padding: 1rem; background: var(--fba-white); margin: 0; }
.fba-svc__head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .25rem; }
.fba-svc__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.fba-table-wrap { overflow-x: auto; border: 1px solid var(--fba-line); border-radius: var(--fba-r); }
.fba-table-wrap:focus-visible { outline: 3px solid var(--fb-focus, #084a42); outline-offset: 2px; }
.fba-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.fba-table th, .fba-table td { text-align: left; vertical-align: top; padding: .65rem .75rem; border-bottom: 1px solid var(--fba-line); }
.fba-table thead th { background: var(--fba-surface); font-size: .8125rem; color: var(--fba-muted); }
.fba-table select { min-height: 40px; width: auto; }

/* Find a professional */
.fba-finder { background: var(--fba-white); border: 1px solid var(--fba-line); border-radius: var(--fba-r); padding: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 40em) { .fba-finder { padding: 1.5rem; } }
.fba-finder__grid { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 40em) { .fba-finder__grid { grid-template-columns: 1fr 1fr; } }
.fba-cards { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 48em) { .fba-cards { grid-template-columns: 1fr 1fr; } }
.fba-pcard { margin: 0; border: 1px solid var(--fba-line); border-radius: var(--fba-r); padding: 1rem; background: var(--fba-white); display: flex; flex-direction: column; gap: .15rem; }
.fba-pcard__cat { font-size: .8125rem; font-weight: 600; color: var(--fba-gold-ink); margin: 0; }
.fba-pcard__name { font-size: 1.125rem; margin: 0; }
.fba-pcard__name a { color: var(--fb-heading, #13303f); text-decoration: none; }
.fba-pcard__name a:hover { color: var(--fba-green); text-decoration: underline; }
.fba-pcard__svc { margin: 0; }
.fba-pcard__area, .fba-pcard__hours { font-size: .875rem; color: var(--fba-muted); margin: 0; }
.fba-pcard__checks { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0; }
.fba-pcard .fb-btn { align-self: flex-start; margin-top: auto; }
.fba-check { font-size: .75rem; font-weight: 600; padding: .15rem .5rem; border-radius: 999px; }
.fba-check--ok { background: var(--fb-ok-bg, #e9f5ee); color: var(--fb-ok, #1e6b3f); }
.fba-check--ok::before { content: "✓ "; }
.fba-check--no { background: var(--fb-na-bg, #f1f3f5); color: var(--fb-na, #5f6368); }
.fba-empty { border: 1px dashed var(--fb-line-strong, #cec6b7); border-radius: var(--fba-r); padding: 1rem; background: var(--fba-white); }
.fba-pages { display: flex; gap: 1rem; align-items: center; margin: 1rem 0; }
.fba-pages a { color: var(--fba-green); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.fba-join { margin-top: 2rem; padding: 1.25rem; border-radius: var(--fba-r); background: var(--fba-navy); color: #fff; }
.fba-join .fba-h3 { color: #fff; margin-top: 0; }
.fba-join .fb-btn { background: #fff; color: var(--fba-navy); border-color: #fff; }

/* Profile */
.fba-profile__head { border-bottom: 1px solid var(--fba-line); padding-bottom: 1rem; margin-bottom: .5rem; }
.fba-profile__area { color: var(--fba-muted); }
.fba-enquiry { margin-top: 2rem; padding: 1.25rem; border: 1px solid var(--fba-line); border-top: 3px solid var(--fba-green); border-radius: var(--fba-r); background: var(--fba-white); }
.fba-enquiry .fba-h2 { margin-top: 0; }

/* Inside the theme's article prose: the plugin's own rhythm, and room for
   the forms (wider column for registration, dashboard and search; the
   sign-in card centred). Without :has() support the page keeps the
   theme's reading width, which still works. */
@media (min-width: 64rem) {
	.fb-article--solo:has(.fba-dash, .fba-auth--wide, .fba-find, .fba-profile) { grid-template-columns: minmax(0, 72rem); }
	.fb-article--solo:has(.fba-auth:not(.fba-auth--wide)) { justify-content: center; }
}
.fb-prose .fba { font-size: 1rem; line-height: 1.55; }
.fb-prose .fba p,
.fb-prose .fba * + p { margin-block: 0 .75rem; }
.fb-prose .fba .fb-field__hint,
.fb-prose .fba .fba-field-error,
.fb-prose .fba .fba-meter { margin-block: .35rem 0; }
.fb-prose .fba .fba-pw,
.fb-prose .fba .fba-prefix { margin: 0; }
.fb-prose .fba h2, .fb-prose .fba h3, .fb-prose .fba h4 { margin: 1.5rem 0 .6rem; }
.fb-prose .fba .fba-pcard__name { margin: 0; }
.fb-prose .fba ul.fba-cards, .fb-prose .fba ul.fba-svcs, .fb-prose .fba .fba-dash__nav ul { padding-inline-start: 0; }
.fb-prose .fba li + li { margin-block-start: 0; }
.fb-prose .fba .fba-list li + li { margin-block-start: .35rem; }
.fb-prose .fba a.fb-btn { text-decoration: none; }
.fb-prose .fba .fba-dash__nav a { text-decoration: none; }
.fb-prose .fba-link { text-decoration-thickness: 1px; }
.fba-card__lead { margin-block-end: 1rem !important; }
