/* feet 14.11. (lib/feet_taxonomy.php): the taxonomy's grouped tag chips (profile picker, both request composers), the picked
   row, the search bar, a creator page's grouped chips, the request card's tag chips and the app host's glossary pages.
   fp-system tokens: one blue (--accent), Plus Jakarta heads (--fp-head), 20 px cards, no borders, tonal surfaces. */
.ftx { display: grid; gap: 12px; min-width: 0; }
.ftx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ftx-bar__search { flex: 1 1 220px; min-width: 0; min-height: 44px; }
.ftx-bar__total { margin: 0; white-space: nowrap; }
.ftx-nomatch { margin: 0; }
.ftx-groups { display: grid; gap: 8px; }
.ftx-group { border-radius: 20px; background: var(--surface-2, #f1f4fa); overflow: hidden; }
.ftx-group[hidden] { display: none; }
.ftx-group__sum { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 16px 6px 18px; cursor: pointer; list-style: none; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.ftx-group__sum::-webkit-details-marker { display: none; }
.ftx-group__sum:focus-visible { outline: 2px solid var(--focus-ring, var(--accent)); outline-offset: -2px; border-radius: 20px; }
.ftx-group__name { flex: 1; min-width: 0; font: 650 16px/1.3 var(--fp-head, inherit); letter-spacing: -.01em; }
.ftx-group__n { flex: none; font: 600 13px/1 var(--body, inherit); color: var(--on-accent, #fff); background: var(--accent); padding: 6px 10px; border-radius: 999px; }
.ftx-group__n.is-none { background: var(--surface-3, #e3e8f2); color: var(--ink-2); }
.ftx-group__chev { flex: none; display: grid; place-items: center; width: 28px; height: 28px; color: var(--ink-2); transition: transform .18s ease; }
.ftx-group[open] .ftx-group__chev { transform: rotate(180deg); }
.ftx-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 16px 16px; }
.ftx-chip { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ftx-chip[hidden] { display: none; }
.ftx-chip__in { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px 0 12px; border-radius: 999px; background: var(--surface, #fff); color: var(--ink); font: 600 14px/1 var(--body, inherit); transition: background .15s ease, color .15s ease; }
.ftx-chip:hover .ftx-chip__in { background: var(--surface-3, #e3e8f2); }
.ftx-chip__tick { display: inline-grid; place-items: center; width: 0; height: 16px; overflow: hidden; transition: width .15s ease; }
.ftx-chip__tick .pc-ico { width: 16px; height: 16px; }
.ftx-chip:has(input:checked) .ftx-chip__in { background: var(--accent); color: var(--on-accent, #fff); }
.ftx-chip:has(input:checked) .ftx-chip__tick { width: 16px; }
.ftx-chip:has(input:focus-visible) .ftx-chip__in { outline: 2px solid var(--focus-ring, var(--accent)); outline-offset: 2px; }
.ftx-chip.is-hers .ftx-chip__in { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.ftx-picked { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ftx-picked[hidden] { display: none; }
.ftx-picked__chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, var(--surface, #fff)); color: var(--accent); font: 600 13px/1 var(--body, inherit); cursor: pointer; }
.ftx-picked__chip::after { content: '×'; font-size: 15px; line-height: 1; opacity: .7; }
.ftx-picked__chip:hover { background: color-mix(in srgb, var(--accent) 20%, var(--surface, #fff)); }
.ftx-limit { margin: 0; color: var(--ink-2); }
.ftx-limit[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .ftx-group__chev, .ftx-chip__in, .ftx-chip__tick { transition: none; } }

/* the composers: the tag section under the main fields */
.ftx-sec { display: grid; gap: 10px; }
.ftx-sec__h { margin: 0; font: 650 16px/1.3 var(--fp-head, inherit); color: var(--ink); }
.ftx-sec__sub { margin: 0; }

/* a creator page (members): grouped chips, a small group line over each row (lib/specialties.php pnew_spec_render 'bio') */
.bio-spec--grouped { display: grid; gap: 12px; }
.bio-spec__g { margin: 0; font: 600 13px/1.3 var(--body, inherit); color: var(--ink-2); }
.bio-spec--grouped .bio-spec__list { margin: 0; }

/* the request card (creators): the structured tags, hers marked */
.fp-rq__ftx { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.fp-rq__ftx li { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: var(--surface-2, #f1f4fa); color: var(--ink); font: 600 12px/1 var(--body, inherit); }
.fp-rq__ftx li.is-mine { background: color-mix(in srgb, var(--accent) 14%, var(--surface, #fff)); color: var(--accent); }

/* the directory: the tag the list is filtered by */
.ftx-dirtag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.ftx-dirtag__chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--accent); color: var(--on-accent, #fff); font: 600 14px/1 var(--body, inherit); }
.ftx-dirtag a { color: var(--ink-2); font-size: 14px; }

/* the glossary (app host) */
.fgl { display: grid; gap: 28px; max-width: 920px; margin: 0 auto; padding: 24px 16px 56px; }
.fgl__head { display: grid; gap: 10px; }
.fgl__kicker { margin: 0; font: 600 13px/1.3 var(--body, inherit); color: var(--ink-2); }
.fgl__h1 { margin: 0; font: 700 clamp(28px, 5vw, 40px)/1.1 var(--fp-head, inherit); letter-spacing: -.02em; color: var(--ink); }
.fgl__lede { margin: 0; font: 400 17px/1.5 var(--body, inherit); color: var(--ink-2); max-width: 64ch; }
.fgl__age { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--surface-2, #f1f4fa); color: var(--ink-2); font: 600 13px/1 var(--body, inherit); width: fit-content; }
.fgl__hubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.fgl__hub { display: grid; gap: 6px; padding: 18px 20px; border-radius: 20px; background: var(--surface-2, #f1f4fa); color: var(--ink); text-decoration: none; min-height: 96px; }
.fgl__hub:hover { background: var(--surface-3, #e3e8f2); }
.fgl__hub b { font: 650 17px/1.25 var(--fp-head, inherit); letter-spacing: -.01em; }
.fgl__hub span { font: 400 14px/1.4 var(--body, inherit); color: var(--ink-2); }
.fgl__group { display: grid; gap: 12px; }
.fgl__h2 { margin: 0; font: 650 22px/1.2 var(--fp-head, inherit); letter-spacing: -.015em; color: var(--ink); }
.fgl__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fgl__list a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surface-2, #f1f4fa); color: var(--ink); font: 600 14px/1 var(--body, inherit); text-decoration: none; }
.fgl__list a:hover { background: var(--surface-3, #e3e8f2); }
.fgl__list a.is-person { background: var(--surface, #fff); box-shadow: inset 0 0 0 1px var(--surface-3, #e3e8f2); }
.fgl__text { display: grid; gap: 14px; }
.fgl__text p { margin: 0; font: 400 17px/1.6 var(--body, inherit); color: var(--ink); max-width: 68ch; }
.fgl__syn { margin: 0; font: 400 15px/1.5 var(--body, inherit); color: var(--ink-2); }
.fgl__cta { display: grid; gap: 12px; padding: 22px 24px; border-radius: 20px; background: var(--surface-2, #f1f4fa); }
.fgl__cta h2 { margin: 0; font: 650 20px/1.25 var(--fp-head, inherit); color: var(--ink); }
.fgl__cta p { margin: 0; color: var(--ink-2); }
.fgl__keys { display: flex; flex-wrap: wrap; gap: 10px; }
.fgl__creators { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.fgl__creator { display: grid; gap: 8px; padding: 14px; border-radius: 20px; background: var(--surface-2, #f1f4fa); color: var(--ink); text-decoration: none; text-align: center; }
.fgl__creator img, .fgl__creator .fgl__face { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto; display: grid; place-items: center; background: var(--accent); color: var(--on-accent, #fff); font: 700 26px/1 var(--fp-head, inherit); }
.fgl__creator b { font: 600 14px/1.3 var(--body, inherit); word-break: break-word; }
.fgl__back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font: 600 14px/1 var(--body, inherit); text-decoration: none; width: fit-content; }
.fgl__back:hover { color: var(--ink); }
.fgl__crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font: 500 14px/1.3 var(--body, inherit); color: var(--ink-2); }
.fgl__crumbs a { color: var(--ink-2); }
.fgl__crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
@media (min-width: 1024px) { .fgl { padding: 40px 24px 72px; gap: 36px; } }
