/* Category comparison tables, fitment cards, and buying FAQ accordions.
   Built strictly on Bob's Machine theme tokens (base.css & cat.css): 0px radius, 1px rules,
   Funnel Display / Funnel Sans / JetBrains Mono, high-contrast light and dark (.tss-page) skins. */

.bm-cg-head { max-width: 72ch; }
.bm-cg-intro { max-width: 68ch; }
.bm-cg-note { margin-top: 16px; color: var(--ink-soft); max-width: 76ch; }
.bm-cg-note a { color: var(--ink); }
.bm-cg-note a:hover { color: var(--red); }

/* Responsive comparison table: clean stacked cards on phone, crisp architectural table on >=768px */
.bm-ct-wrap { width: 100%; }
.bm-ct { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.bm-ct thead { display: none; }
.bm-ct tbody tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.bm-ct th[scope="row"] { display: block; text-align: left; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 600; font-size: 17px; line-height: 22px; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 8px; }
.bm-ct th[scope="row"] a:hover { color: var(--red); }
.bm-ct td { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr); gap: 8px 12px; padding: 5px 0; font-size: 14px; line-height: 20px; color: var(--ink); text-align: left; }
.bm-ct td::before { content: attr(data-label); font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace; font-size: 10px; line-height: 18px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.bm-ct td a { font-weight: 500; }

/* Pilot / fitment guide strip (e.g. inside TS&S hub) */
.bm-cg-pilots { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--rule); }
.bm-cg-pilot-grid { display: grid; gap: 12px; margin-top: 14px; }
.bm-cg-pilot { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: #fff; color: var(--ink); border: 1px solid var(--rule); transition: border-color .2s, transform .25s, box-shadow .25s; }
.bm-cg-pilot:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(10,14,20,.2); }
.bm-cg-pilot-k { color: var(--red); }
.bm-cg-pilot-t { line-height: 1.15; }
.bm-cg-pilot-s { color: var(--ink-soft); line-height: 1.45; }
.bm-cg-pilot-go { margin-top: auto; padding-top: 10px; color: var(--ink); }
.bm-cg-pilot:hover .bm-cg-pilot-go { color: var(--red); }

/* Editorial 2-column FAQ layout */
.bm-faq-layout { display: grid; gap: 28px; align-items: start; }
.bm-faq-intro { margin-top: 12px; color: var(--ink-soft); max-width: 44ch; line-height: 1.55; }
.bm-faq-guides { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rule); }
.bm-faq-guides-h { color: var(--ink-soft); margin-bottom: 8px; }
.bm-faq-guides li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 20px; font-weight: 500; transition: color .15s; }
.bm-faq-guides li a:hover { color: var(--red); }

.bm-faq-list { border-top: 2px solid var(--ink); }
.bm-faq-item { border-bottom: 1px solid var(--rule); }
.bm-faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 16px 0; cursor: pointer; list-style: none; font-size: 17px; line-height: 23px; color: var(--ink); transition: color .15s; }
.bm-faq-q::-webkit-details-marker { display: none; }
.bm-faq-q:hover { color: var(--red); }
.bm-faq-ico { position: relative; flex: 0 0 20px; width: 20px; height: 20px; }
.bm-faq-ico::before, .bm-faq-ico::after { content: ''; position: absolute; left: 3px; right: 3px; top: 50%; height: 1.5px; background: currentColor; transform: translateY(-50%); transition: transform .2s, opacity .2s; }
.bm-faq-ico::after { transform: translateY(-50%) rotate(90deg); }
.bm-faq-item[open] > .bm-faq-q .bm-faq-ico::after { transform: translateY(-50%) rotate(0deg); opacity: 0; }
.bm-faq-a { padding: 0 0 20px; max-width: 72ch; color: rgba(10,14,20,.82); }
.bm-faq-a a { color: var(--ink); font-weight: 500; }
.bm-faq-a a:hover { color: var(--red); }

/* Dark surface skin inside .tss-page (--tss-black #171F1D). WCAG-safe: no #B43335 text on dark. */
.bm-cg-dark .bm-cg-eyebrow { color: var(--red-on-dark); margin-bottom: 8px; }
.bm-cg-dark .bm-cg-note { color: rgba(255,255,255,.72); }
.bm-cg-dark .bm-cg-note a { color: #fff; }
.bm-cg-dark .bm-cg-note a:hover { color: var(--red-on-dark); }
.bm-cg-dark .bm-ct { border-top-color: rgba(255,255,255,.45); }
.bm-cg-dark .bm-ct tbody tr { border-bottom-color: rgba(255,255,255,.14); }
.bm-cg-dark .bm-ct th[scope="row"] { color: #fff; }
.bm-cg-dark .bm-ct td { color: rgba(255,255,255,.84); }
.bm-cg-dark .bm-ct td::before { color: rgba(255,255,255,.55); }
.bm-cg-dark .bm-ct a { color: #fff; }
.bm-cg-dark .bm-ct a:hover { color: var(--red-on-dark); }
.bm-cg-dark .bm-cg-pilots { border-top-color: rgba(255,255,255,.14); }
.bm-cg-dark .bm-cg-pilot { background: #0E1317; color: #fff; border-color: rgba(255,255,255,.18); }
.bm-cg-dark .bm-cg-pilot:hover { border-color: #fff; box-shadow: 0 12px 28px -12px rgba(0,0,0,.7); }
.bm-cg-dark .bm-cg-pilot-k { color: var(--red-on-dark); }
.bm-cg-dark .bm-cg-pilot-s { color: rgba(255,255,255,.72); }
.bm-cg-dark .bm-cg-pilot-go { color: #fff; }
.bm-cg-dark .bm-cg-pilot:hover .bm-cg-pilot-go { color: var(--red-on-dark); }
.bm-cg-dark .bm-faq-intro { color: rgba(255,255,255,.72); }
.bm-cg-dark .bm-faq-list { border-top-color: rgba(255,255,255,.45); }
.bm-cg-dark .bm-faq-item { border-bottom-color: rgba(255,255,255,.14); }
.bm-cg-dark .bm-faq-q { color: #fff; }
.bm-cg-dark .bm-faq-q:hover { color: var(--red-on-dark); }
.bm-cg-dark .bm-faq-a { color: rgba(255,255,255,.82); }
.bm-cg-dark .bm-faq-a a { color: #fff; }
.bm-cg-dark .bm-faq-a a:hover { color: var(--red-on-dark); }

@media (min-width: 768px) {
  .bm-ct thead { display: table-header-group; }
  .bm-ct thead th { padding: 12px 18px 12px 0; text-align: left; color: var(--ink-soft); border-bottom: 1px solid var(--rule); vertical-align: bottom; }
  .bm-ct tbody tr { display: table-row; padding: 0; transition: background-color .15s; }
  .bm-ct tbody tr:hover { background: var(--cream); }
  .bm-ct th[scope="row"], .bm-ct td { display: table-cell; padding: 14px 18px 14px 0; vertical-align: top; border-bottom: 1px solid var(--rule); }
  .bm-ct th[scope="row"] { font-size: 16px; line-height: 22px; margin-bottom: 0; width: 20%; }
  .bm-ct td::before { content: none; }
  .bm-ct td:last-child, .bm-ct thead th:last-child { padding-right: 0; }
  .bm-cg-dark .bm-ct thead th { color: rgba(255,255,255,.58); border-bottom-color: rgba(255,255,255,.18); }
  .bm-cg-dark .bm-ct tbody tr:hover { background: rgba(255,255,255,.04); }
  .bm-cg-dark .bm-ct th[scope="row"], .bm-cg-dark .bm-ct td { border-bottom-color: rgba(255,255,255,.14); }
  .bm-cg-pilot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

@media (min-width: 1024px) {
  .bm-faq-layout { grid-template-columns: 5fr 7fr; gap: 48px; }
  .bm-faq-aside { position: sticky; top: calc(104px + var(--bm-adminbar, 0px)); }
  .bm-faq-q { font-size: 19px; line-height: 26px; padding: 18px 0; }
}
