/* Jack plate finder, big version. Variant A, "one black" (Egor 10.11): the whole finder sits on the black band, no white boxes.
   Tabs, the answers panel, series cards and every panel are dark surfaces one or two steps lighter than the band,
   the chosen tab is lit by a red bar and a white outline, the brand red fills what is chosen.
   Built from the prototype reports/concepts/bobs/assets/new/fd/ (core.css, dark.css, a.css). Tokens and type classes from base.css and home.css. */

/* Same reveal values as index.html. Without JS nothing is hidden. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); will-change: opacity, transform; }
.js .reveal.in-view { opacity: 1; transform: none; }
@keyframes cfgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cfg-in { animation: cfgIn .22s cubic-bezier(.16,1,.3,1) both; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .cfg-in { animation: none; }
  .cfg-bar > i, .cfg-progress i, .cfg-chip { transition: none; }
}
.cfg-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cfg-deep .cfg-stage { min-height: 1100px; }
.js.cfg-deep .cfg-stage > * { visibility: hidden; }
.cfg button, .cfg a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.cfg-stats [data-count-to] { display: inline-block; text-align: right; }

/* ---------- On the black band: the inside of every step ---------- */
.cfg {
  --s1: #121822;          /* a card or a panel on the band */
  --s2: #1A212D;          /* something raised inside a panel */
  --hl: rgba(255,255,255,.12);
  --hl2: rgba(255,255,255,.26);
  --tx2: rgba(255,255,255,.7);
  --tx3: rgba(255,255,255,.56);
  --tile: #ECEAE5;
}
.cfg { padding: 32px 0 48px; }
.cfg-h1 { color: #fff; margin-bottom: 12px; }
.cfg-sub { color: var(--tx2, rgba(255,255,255,.72)); font-size: 16px; line-height: 24px; }
.cfg :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cfg-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.cfg-stats div { border-left: 2px solid var(--red); padding-left: 10px; min-width: 0; }
.cfg-stats dt { color: rgba(255,255,255,.55); margin-bottom: 4px; font-size: 9px; letter-spacing: .1em; }
.cfg-stats dd { margin: 0; font-size: 22px; font-variant-numeric: tabular-nums; }

.cfg-stage { min-width: 0; }
.cfg-step { padding: 0; }
.cfg-q { font-size: 22px; line-height: 1.15; margin-bottom: 14px; outline: 0; color: #fff; }
.cfg-hint { color: var(--tx2); font-size: 14px; line-height: 20px; margin-bottom: 14px; }
.cfg-link { display: inline-flex; align-items: center; min-height: 44px; background: none; border: 0; padding: 0 2px; color: var(--red-on-dark); font-size: 14px; cursor: pointer; white-space: nowrap; font-family: inherit; }
.cfg-link:hover { text-decoration: underline; }
.cfg-back { flex: 0 0 auto; min-height: 44px; min-width: 76px; padding: 0 12px; background: none; border: 1px solid var(--hl2); color: #fff; font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color .2s; }
.cfg-back:hover { border-color: #fff; }

/* Choice buttons */
.cfg-chip { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 8px 10px; background: rgba(255,255,255,.04); border: 1px solid var(--hl2); color: #fff; font-family: 'Funnel Display', sans-serif; font-weight: 600; font-size: 15px; line-height: 1.15; letter-spacing: -.01em; cursor: pointer; transition: border-color .2s, background-color .2s, transform .15s; }
@media (hover: hover) { .cfg-chip:hover { border-color: #fff; background: rgba(255,255,255,.07); } }
.cfg-chip:active { transform: scale(.98); }
.cfg-chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.cfg-chip-unsure { border-style: dashed; color: var(--tx2); font-weight: 500; }

/* Panels: a step's body, on the band */
.cfg-panel { background: var(--s1); border: 1px solid var(--hl); color: #fff; padding: 16px; margin-top: 12px; }
.cfg-view > .cfg-panel:first-child, .cfg-step > .cfg-panel:first-child { margin-top: 0; }
.cfg-panel .c-soft, .cfg .c-soft { color: var(--tx2); }
.cfg-panel-t { font-family: 'Funnel Display', sans-serif; font-weight: 600; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 8px; outline: 0; }
.cfg-confirm { border-top: 1px solid var(--hl); margin-top: 14px; padding-top: 12px; font-size: 14px; line-height: 20px; color: #fff; }
.cfg-panel > .cfg-confirm:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.cfg .u { text-decoration: underline; text-underline-offset: 2px; }

/* Series cards */
.cfg-fams { display: grid; gap: 12px; margin-top: 4px; }
.cfg-fam { background: var(--s1); border: 1px solid var(--hl); color: #fff; padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cfg-fam-top { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
.cfg-fam-img { background: var(--tile); aspect-ratio: 1; display: block; isolation: isolate; position: relative; overflow: hidden; }
.cfg-fam-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cfg-fam h3 { font-family: 'Funnel Display', sans-serif; font-weight: 600; font-size: 18px; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 4px; }
.cfg-from { font-size: 14px; color: var(--tx2); }
.cfg-from b { color: #fff; font-family: 'Funnel Display', sans-serif; font-size: 17px; font-weight: 700; }
.cfg-lines { margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 18px; color: var(--tx2); }
.cfg-lines li { padding: 3px 0 3px 12px; position: relative; }
.cfg-lines li::before { content: ''; position: absolute; left: 0; top: 10px; width: 4px; height: 4px; background: var(--red); }
.cfg-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.cfg-size { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 6px 8px; border: 1px solid var(--hl2); background: transparent; color: #fff; font-family: 'Funnel Display', sans-serif; font-weight: 600; font-size: 14px; line-height: 1.15; text-align: center; cursor: pointer; transition: border-color .2s, background-color .2s; }
.cfg-size small { font-family: 'Funnel Sans', sans-serif; font-weight: 400; font-size: 12px; color: var(--tx2); }
@media (hover: hover) { .cfg-size:hover { border-color: #fff; } }
.cfg-size[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.cfg-size[aria-pressed="true"] small { color: rgba(255,255,255,.85); }
.cfg-sizes.cfg-wide { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.cfg-size-hint { font-size: 13px; line-height: 18px; color: var(--tx2); }
.cfg-size-hint b { color: #fff; font-weight: 600; }
.cfg-stock { display: inline-block; font-size: 11px; line-height: 15px; font-weight: 600; color: var(--red-on-dark); }

/* Setback help */
.cfg-help-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 16px; background: transparent; border: 1px solid var(--hl2); color: #fff; font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer; margin-bottom: 12px; }
.cfg-help-btn:hover { border-color: #fff; }
.cfg-grid2 { display: grid; gap: 16px; }
.cfg-bars { display: grid; gap: 6px; margin: 10px 0; }
.cfg-bar { display: grid; grid-template-columns: 36px minmax(0, 1fr) 42px; gap: 8px; align-items: center; font-size: 13px; }
.cfg-bar > span { height: 12px; background: var(--hl); display: block; position: relative; overflow: hidden; }
.cfg-bar > span > i { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(var(--w, 0)); transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.cfg-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }

/* Options, total, actions */
.cfg-facet { margin-bottom: 14px; }
.cfg-facet > .mono { display: block; color: var(--tx2); margin-bottom: 6px; }
.cfg-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-top: 8px; }
.cfg-price { font-family: 'Funnel Display', sans-serif; font-weight: 700; font-size: 30px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #fff; }
.cfg-sku { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--tx3); }
.cfg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cfg-actions .cta-primary, .cfg-actions .cta-ghost { flex: 1 1 auto; text-align: center; }
.cfg .cta-ghost { background: transparent; color: #fff; border-color: var(--hl2); }
.cfg .cta-ghost:hover { border-color: #fff; }
.cfg-note-line { font-size: 13px; line-height: 18px; color: var(--tx2); margin-top: 8px; }

/* Bolts and the team form */
.cfg-field { display: block; margin-bottom: 12px; }
.cfg-field > span { display: block; font-size: 14px; margin-bottom: 6px; color: #fff; }
.cfg-input { width: 100%; min-height: 50px; padding: 0 12px; border: 1px solid var(--hl2); background: rgba(255,255,255,.04); color: #fff; font-family: inherit; font-size: 16px; border-radius: 0; }
.cfg-input::placeholder { color: var(--tx3); }
.cfg-input:focus { outline: 2px solid var(--red-on-dark); outline-offset: 1px; }
.cfg-input[readonly] { background: var(--s2); color: var(--tx2); }
.cfg-ta { min-height: 120px; padding: 10px 12px; line-height: 1.4; resize: vertical; }
.cfg-boltrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--hl); }
.cfg-boltrow b { font-weight: 600; font-size: 14px; }
.cfg-boltrow small { display: block; color: var(--tx2); font-size: 13px; }
.cfg-boltrow a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; font-size: 14px; color: var(--red-on-dark); }

/* Short lists (TS&S) */
.cfg-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--hl); color: #fff; }
.cfg-row:first-child { border-top: 0; }
.cfg-row:hover b { color: var(--red-on-dark); }
.cfg-row b { font-weight: 500; font-size: 14px; line-height: 19px; }
.cfg-row span { font-family: 'Funnel Display', sans-serif; font-weight: 700; font-size: 15px; white-space: nowrap; }
.cfg .mono.c-soft { color: var(--tx3); }

/* A step that is long on a phone keeps its main button in reach. */
@media (max-width: 767px) {
  .cfg-stick { position: sticky; bottom: 0; z-index: 2; flex-wrap: nowrap; margin: 14px -16px 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--s1); box-shadow: 0 -1px 0 var(--hl); }
  .cfg-stick .cta-primary, .cfg-stick .cta-ghost { flex: 1 1 0; min-height: 48px; padding: 8px; font-size: 14px; line-height: 1.15; }
}
@media (min-width: 768px) {
  .cfg-panel { padding: 20px; }
  .cfg-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .cfg-stats { gap: 28px; }
  .cfg-stats dd { font-size: 30px; }
  .cfg-stats dt { font-size: 10px; letter-spacing: .15em; }
}

/* ---------- Layout: entrances, step, answers ---------- */
.cfg .cfg-head { display: grid; gap: 20px; margin-bottom: 24px; }

/* Three entrances */
.cfg .cfg-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
.cfg .cfg-door { position: relative; display: flex; flex-direction: column; gap: 4px; justify-content: center; min-height: 52px; padding: 8px; background: transparent; border: 1px solid var(--hl); color: var(--tx2); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.cfg .cfg-door b { font-family: 'Funnel Display', sans-serif; font-weight: 600; font-size: 14px; line-height: 1.15; letter-spacing: -.01em; }
.cfg .cfg-door span { display: none; color: var(--tx3); font-size: 13px; line-height: 18px; }
@media (hover: hover) { .cfg .cfg-door:hover { border-color: var(--hl2); color: #fff; } }
.cfg .cfg-door[aria-selected="true"] { background: var(--s1); border-color: rgba(255,255,255,.55); color: #fff; box-shadow: inset 0 3px 0 var(--red); }
.cfg .cfg-door[aria-selected="true"] span { color: var(--tx2); }

/* Step and its status */
.cfg .cfg-layout { display: grid; gap: 24px; align-items: start; }
.cfg .cfg-stage { min-height: 500px; }
.cfg .cfg-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.cfg .cfg-status-text { min-width: 0; flex: 1 1 auto; }
.cfg .cfg-step-n { color: var(--tx3); margin: 0; }
.cfg .cfg-trail { margin: 2px 0 0; font-size: 13px; line-height: 18px; color: #fff; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.cfg .cfg-progress { height: 2px; margin: 8px 0 16px; background: var(--hl); }
.cfg .cfg-progress i { display: block; height: 100%; background: var(--red-on-dark); transform-origin: left center; transition: transform .25s cubic-bezier(.16,1,.3,1); }
.cfg .cfg-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

/* Answers: a dark panel, the same surface as the cards */
.cfg .cfg-side { background: var(--s1); border: 1px solid var(--hl); color: #fff; padding: 16px; }
.cfg .cfg-side.is-empty { display: none; }
.cfg .cfg-side-t { color: var(--tx3); margin-bottom: 10px; }
.cfg .cfg-side-empty { color: var(--tx2); font-size: 14px; line-height: 20px; }
.cfg .cfg-side dl { margin: 0; }
.cfg .cfg-side-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--hl); }
.cfg .cfg-side-row:first-child { border-top: 0; }
.cfg .cfg-side-row > div { min-width: 0; }
.cfg .cfg-side-row .cfg-link { flex: 0 0 auto; min-height: 36px; }
.cfg .cfg-side dt { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--tx3); }
.cfg .cfg-side dd { margin: 2px 0 0; font-size: 14px; line-height: 19px; color: #fff; }
.cfg .cfg-side-actions { border-top: 1px solid var(--hl); margin-top: 14px; padding-top: 12px; display: grid; gap: 8px; }
.cfg .cfg-side-actions .cta-ghost { text-align: center; width: 100%; }
.cfg .cfg-side-tel { font-size: 14px; color: #fff; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 6px; }
.cfg .cfg-side-tel:hover { color: var(--red-on-dark); }

@media (max-width: 767px) {
  .cfg { padding: 20px 0 32px; }
  .cfg .cfg-head { gap: 0; margin-bottom: 16px; }
  .cfg .cfg-stats, .cfg .finder-eyebrow { display: none; }
  .cfg .cfg-h1 { margin-bottom: 6px; font-size: 26px; line-height: 1.05; }
  .cfg .cfg-sub { font-size: 14px; line-height: 20px; }
  .cfg .cfg-q { font-size: 20px; }
  .cfg .cfg-progress { margin-bottom: 12px; }
  .cfg .cfg-layout { gap: 16px; }
}
@media (min-width: 640px) { .cfg .cfg-chips { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
@media (min-width: 768px) {
  .cfg { padding: 56px 0 72px; }
  .cfg .cfg-head { grid-template-columns: minmax(0, 1fr) 460px; align-items: end; gap: 48px; margin-bottom: 32px; }
  .cfg .cfg-doors { gap: 12px; margin-bottom: 32px; }
  .cfg .cfg-door { padding: 18px 20px; min-height: 92px; }
  .cfg .cfg-door b { font-size: 20px; }
  .cfg .cfg-door span { display: block; }
  .cfg .cfg-q { font-size: 26px; }
  .cfg .cfg-fams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cfg .cfg-fam:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; align-content: start; }
  .cfg .cfg-fam:last-child:nth-child(odd) > .cfg-fam-top, .cfg .cfg-fam:last-child:nth-child(odd) > .cfg-lines { grid-column: 1; }
  .cfg .cfg-fam:last-child:nth-child(odd) > .cfg-sizes { grid-column: 2; grid-row: 1 / span 4; align-self: start; }
  .cfg .cfg-fam:last-child:nth-child(odd) > .cfg-size-hint { grid-column: 1; }
  .cfg .cfg-fam-top { grid-template-columns: 96px minmax(0, 1fr); }
}
@media (min-width: 1024px) {
  .cfg .cfg-stage { min-height: 560px; }
  .cfg .cfg-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
  .cfg .cfg-side, .cfg .cfg-side.is-empty { display: block; position: sticky; top: calc(96px + var(--bm-adminbar, 0px)); }
}

/* Review marks for Steven's open questions: the data-review attribute on #cfg (option bm_finder_review) switches them off. */
.cfg-flag { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 9px; line-height: 14px; letter-spacing: .04em; text-transform: uppercase; padding: 0 5px; background: #FFF1CC; color: #6B4A00; white-space: nowrap; vertical-align: 1px; }
.cfg-note { border: 1px dashed #B58900; background: #FFF9E6; color: #5C4300; font-size: 12px; line-height: 17px; padding: 8px 10px; margin-top: 10px; }
.cfg-note b { font-weight: 700; }
[data-review="off"] .cfg-flag, [data-review="off"] .cfg-note, [data-review="off"] .bmf-flag { display: none !important; }

/* Theme details the prototype did not draw */
.cfg-bar { font-variant-numeric: tabular-nums; }
.cfg-bar b { text-align: right; font-weight: 600; }
.cfg-tabs .cfg-size { min-height: 44px; flex: 1 1 auto; }
.cfg-size:disabled { opacity: .35; cursor: not-allowed; border-style: dashed; }
.cfg-side-price { font-family: 'Funnel Display', sans-serif; font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; color: #fff; }

/* Ratings table under the finder: the same light section in every variant, word for word from the theme. */
.cfg-table { width: 100%; border-collapse: collapse; }
.cfg-table thead { display: none; }
.cfg-table tr { display: block; border-top: 1px solid var(--rule); padding: 14px 0; }
.cfg-table th, .cfg-table td { display: block; text-align: left; padding: 0; font-weight: 400; }
.cfg-t-hp { display: inline-block; font-family: 'Funnel Display', sans-serif; font-weight: 600; font-size: 17px; margin-bottom: 8px; }
.cfg-t-hp:hover { color: var(--red); }
.cfg-t-list { display: grid; gap: 6px; }
.cfg-t-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.cfg-t-list a { font-weight: 500; font-size: 15px; line-height: 22px; }
.cfg-t-note { color: var(--ink-soft); font-size: 13px; line-height: 22px; }
@media (min-width: 768px) {
  .cfg-table thead { display: table-header-group; }
  .cfg-table thead th { padding: 10px 16px 10px 0; color: var(--ink-soft); } /* Egor 10.11: the header row has a line above it, so the same 10px above as below */
  .cfg-table tr { display: table-row; padding: 0; }
  .cfg-table tbody tr { border-top: 1px solid var(--rule); }
  .cfg-table th, .cfg-table td { display: table-cell; vertical-align: top; padding: 16px 16px 16px 0; }
  .cfg-table th[scope="row"] { width: 220px; }
  .cfg-t-list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px 32px; }
  .cfg-t-list li { display: block; }
  .cfg-t-note { display: block; line-height: 18px; }
}

/* The chat plate never covers the finder. Wider than this, the plate sits beyond the container on its own. */
@media (max-width: 1799px) {
  .bm-chat-plate { transition: background-color .2s, transform .2s, opacity .2s, visibility .2s; }
  .bmf-under-plate .bm-chat-plate { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media print { .cfg-note, .cfg-flag { display: none !important; } }


/* Transducer step (D, Egor 10.11; data from mu-plugin bm-plate-extras.php): transducers of one sonar brand, one per row */
.cfg-xm { display: grid; gap: 6px; margin-top: 12px; }
.cfg-xm button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; width: 100%; min-height: 52px; padding: 10px 12px; text-align: left; background: transparent; border: 1px solid var(--hl2); color: #fff; font: inherit; cursor: pointer; }
.cfg-xm b { font-weight: 600; font-size: 14px; line-height: 19px; }
.cfg-xm small { display: block; margin-top: 2px; font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace; font-weight: 400; font-size: 12px; line-height: 16px; color: var(--tx2); }
.cfg-xm span { font-family: 'Funnel Display', sans-serif; font-weight: 700; font-size: 15px; white-space: nowrap; }
@media (hover: hover) { .cfg-xm button:hover { border-color: #fff; } }
.cfg-xm button[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.cfg-xm button[aria-pressed="true"] small { color: rgba(255,255,255,.85); }
.cfg-boltrow > span { font-family: 'Funnel Display', sans-serif; font-weight: 700; font-size: 15px; white-space: nowrap; }
