/* =====================================================================
   FIND AN EXPERT: expertise finder (practice · service line · industry · text).
   Sharp-edged, hairline panels on the light reading scope; gold squares mark
   lists, as in the menus. Nothing animates beyond the shared reveal.
   ===================================================================== */
.fx-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 48px; margin-bottom: clamp(28px, 3.6vw, 48px); }
.fx-head h2 { max-width: 15ch; }
.fx-head p { max-width: 50ch; color: var(--muted); font-size: 1.02rem; }

/* ---------- filter panel ---------- */
.fx-tools { display: grid; gap: 22px; padding: clamp(18px, 2.4vw, 30px); background: #FBFAF7; border: 1px solid var(--line); }
.fx-prac { display: flex; flex-wrap: wrap; gap: 0 28px; border-bottom: 1px solid var(--line); }
.fx-prac button { position: relative; padding: 4px 0 14px; border: 0; background: none; color: var(--muted); font: 600 .95rem/1.25 var(--sans); letter-spacing: -.005em; text-align: left; transition: color .2s; }
.fx-prac button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; transition: background .2s; }
.fx-prac button:hover, .fx-prac button[aria-pressed="true"] { color: var(--ink); }
.fx-prac button[aria-pressed="true"]::after { background: var(--gold); }
.fx-prac button span { margin-left: 7px; font: 500 .72rem/1 var(--mono); color: var(--faint); }
.fx-prac button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 0; }

.fx-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.35fr) auto; gap: 16px; align-items: end; }
.fx-field { display: grid; gap: 9px; min-width: 0; }
.fx-field label { font: 600 .7rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.fx-field select, .fx-field input { width: 100%; min-width: 0; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 0; background: #fff; color: var(--ink); font: 500 .98rem/1.3 var(--sans); }
.fx-field select { -webkit-appearance: none; appearance: none; padding-right: 42px; text-overflow: ellipsis; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23170C12' stroke-width='1.5'/%3E%3C/svg%3E") right 14px center/16px no-repeat; }
.fx-field input { padding-left: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='4.5' fill='none' stroke='%236F6368' stroke-width='1.4'/%3E%3Cpath d='M10.5 10.5 14 14' stroke='%236F6368' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") 15px center/17px no-repeat; }
.fx-field :is(select, input):hover { border-color: var(--steel); }
.fx-field :is(select, input):focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(217,83,31,.28); }
.fx-field :is(select, input):focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; border-radius: 0; }
.fx-clear { min-height: 52px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font: 600 .9rem/1 var(--sans); white-space: nowrap; transition: background .2s, color .2s; }
.fx-clear:hover { background: var(--ink); color: #fff; }
.fx-clear:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 0; }

.fx-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin: clamp(24px, 3vw, 36px) 0 18px; }
.fx-count { font-size: .95rem; color: var(--muted); }
.fx-count b { font: 400 1.5rem/1 var(--accent); color: var(--ink); margin-right: 2px; }
.fx-note { font-size: .86rem; color: var(--faint); }

/* ---------- results ---------- */
.fx-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fx-card { position: relative; display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: 26px 24px 22px; background: #fff; border: 1px solid var(--line); transition: border-color .25s, box-shadow .3s; }
.fx-card::before { content: ""; position: absolute; left: -1px; top: -1px; width: 48px; height: 2px; background: var(--gold); transition: width .5s var(--ease); }
.fx-card:hover { border-color: var(--line-2); box-shadow: 0 24px 50px -34px rgba(11,7,9,.35); }
.fx-card:hover::before, .fx-card:focus-within::before { width: calc(100% + 2px); }
.fx-card__p { font: 600 .68rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.fx-card h3 { font: 400 clamp(1.45rem, 1.2rem + .6vw, 1.8rem)/1.14 var(--accent); letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.fx-card__k { display: block; margin-bottom: 9px; font: 600 .66rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.fx-card__d { font-size: .95rem; line-height: 1.6; color: var(--body); }
.fx-card__q ul { display: grid; gap: 9px; margin: 0; }
.fx-card__q li { position: relative; padding-left: 18px; font-size: .94rem; line-height: 1.5; color: var(--ink); }
.fx-card__q li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; background: var(--gold); }
.fx-card__ind { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.fx-card__ind li { padding: 6px 9px 5px; border: 1px solid var(--line); font: 600 .72rem/1.2 var(--sans); color: var(--muted); }
.fx-card__go { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; }
.fx-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; background: var(--ink); color: #fff; font: 600 .88rem/1 var(--sans); text-decoration: none; transition: background .25s, color .25s; }
.fx-cta svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.fx-cta:hover { background: #F26B3A; color: #13070D; }
.fx-cta:hover svg { transform: translateX(3px); }
.fx-more { font: 600 .88rem/1.2 var(--sans); color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.fx-more:hover { color: var(--gold-ink); }
.fx-cta:focus-visible, .fx-more:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 0; }

.fx-empty { display: grid; justify-items: center; gap: 14px; padding: clamp(36px, 6vw, 72px) 20px; border: 1px dashed var(--line-2); text-align: center; }
.fx-empty h3 { font: 400 clamp(1.5rem, 1.2rem + .8vw, 2rem)/1.2 var(--accent); }
.fx-empty p { max-width: 54ch; color: var(--muted); }
.fx-empty a { color: var(--ink); text-decoration-color: var(--gold); }

@media (max-width: 1100px) {
  .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-row { grid-template-columns: 1fr 1fr; }
  .fx-field--q { grid-column: 1 / -1; order: -1; }
  .fx-clear { justify-self: start; }
}
@media (max-width: 680px) {
  .fx-grid, .fx-row { grid-template-columns: 1fr; }
  .fx-prac { gap: 0 18px; }
  .fx-prac button { font-size: .9rem; padding-bottom: 12px; }
  .fx-card { padding: 22px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) { .fx-card::before, .fx-cta svg { transition: none; } }
