/* Qualification strip ("the ledger line").
 *
 * A slim parchment band carrying the firm's verifiable track record, injected as
 * markup directly after <body> on every static page by server.mjs. It reads as the
 * ruled header of an underwriting file rather than a marketing banner: tabular
 * figures, small-caps labels, gold hairline rules between entries.
 *
 * Constraints this file works under:
 *  - The ~900 pages are hand-coded with inline <style> blocks and no shared sheet,
 *    so every selector is namespaced `.wbfx*` and every property is set explicitly
 *    rather than inherited.
 *  - It sits ABOVE each page's navy header, so it is deliberately light (parchment)
 *    to read as its own band instead of merging into the navy.
 *  - Figures must match what the homepage publishes. Change them there first.
 */

.wbfx {
  background: #f4f1ea;
  border-bottom: 1px solid rgba(183, 134, 11, 0.38);
  box-shadow: inset 0 -1px 0 rgba(27, 42, 74, 0.06);
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.15;
  -webkit-font-smoothing: antialiased;
}

/* Track: centred and WRAPPING.
 *
 * It must never scroll horizontally. A centred flex row with `overflow-x:auto`
 * clips its overflow at BOTH ends and the clipped start is unreachable by scroll
 * or keyboard -- that shipped once and cut "1998 Practice founded" down to
 * "actice founded". Wrapping keeps every fact visible and discoverable at any
 * width, with no scroll affordance to discover and nothing hidden from keyboard
 * or screen-reader users. Extra rows are laid out in the first paint, so wrapping
 * costs no layout shift. */
.wbfx-t {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 3px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 7px 16px;
}

.wbfx-i {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex: 0 0 auto;
  padding: 1px 13px;
  border-left: 1px solid rgba(183, 134, 11, 0.3);
  white-space: nowrap;
}
/* Only the first item on the FIRST row can rely on :first-child, so the rule is a
 * hairline between entries rather than a box; a wrapped row simply starts with one
 * and that reads as a ruled ledger column, not as a mistake. */
.wbfx-i:first-child {
  border-left: 0;
}

/* The figure. Tabular numerals keep the row optically even. */
.wbfx-i > b {
  color: #1b2a4a;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* The label. Small caps, muted, so the figures carry the row. */
.wbfx-i > i {
  color: #5c6879;
  font-style: normal;
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.62px;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .wbfx-t {
    padding: 6px 10px;
    row-gap: 2px;
  }
  .wbfx-i {
    padding: 1px 9px;
  }
  .wbfx-i > b {
    font-size: 12.5px;
  }
  .wbfx-i > i {
    font-size: 8.5px;
    letter-spacing: 0.4px;
  }
}

/* Never print the strip: it is site furniture, and the PDF/print exports of blog
 * and service pages carry the firm's figures on their own cover. */
@media print {
  .wbfx {
    display: none !important;
  }
}
