/* The comparison lives in one HTML section in index.html, shared by SSR and SPA. */
.why-page { max-width: 1120px; min-width: 0; margin: 0 auto; line-height: 1.6; }
.why-page h2 { font-size: 20px; margin: 22px 0 10px; }
.why-comparison { min-width: 0; margin-top: 18px; }
.why-comparison > .card-h { margin: 0 0 10px; color: var(--text); }
.why-legend { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 13px; margin: 8px 0; }
.why-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.why-swipe { display: none; font-size: 12px; color: var(--muted); margin: 6px 0; }
/* No height/max-height: vertical scrolling belongs to the existing main page.
   A horizontal overflow ancestor prevents headers sticking to main's viewport;
   do not add a second vertical scroll area just to make headers sticky. */
.why-table-scroll { position: relative; width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 6px; -webkit-overflow-scrolling: touch; }
.why-table-scroll:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.why-matrix { width: 100%; min-width: 1000px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 13px; line-height: 1.4; }
.why-matrix th, .why-matrix td { padding: 9px 8px; border-bottom: 1px solid var(--border); white-space: normal; overflow-wrap: break-word; }
.why-matrix th { font-weight: 600; }
.why-matrix thead th { background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; text-align: center; vertical-align: middle; }
.why-matrix thead th:nth-child(2) { color: var(--primary); font-weight: 700; }
.why-matrix tr > :first-child:not([colspan]) { width: 220px; position: sticky; left: 0; z-index: 2; background: var(--surface); text-align: left; border-right: 1px solid var(--border); }
.why-matrix thead tr > :first-child { z-index: 3; }
.why-matrix td { background: var(--surface); text-align: center; vertical-align: middle; }
.why-matrix .why-capability th { font-size: 13px; font-weight: 400; color: var(--text); }
.why-matrix tr > :nth-child(2) { background: color-mix(in srgb, var(--primary) 9%, var(--surface)); }
.why-matrix .why-group th { background: color-mix(in srgb, var(--primary) 5%, var(--surface)); color: #1e40af; font-size: 13px; font-weight: 600; text-align: left; padding: 9px 8px; }
.why-status { display: inline-block; width: 24px; height: 24px; vertical-align: middle; object-fit: contain; }
.why-legend .why-status { width: 20px; height: 20px; flex: 0 0 20px; }
.why-disclaimer { font-size: 12px; color: var(--muted); margin: 12px 0; }
.why-cta { margin: 20px 0 10px; }
/* Leave the final action above the existing floating footer / member alerts. */
.main:has(#why-ideahub.view.active) { padding-bottom: 90px; }
.why-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Match Pricing's #414 fix: wrapped mobile navigation and Android toolbar
   resizing need document scrolling, with space above the floating footer. */
@media (max-width: 980px) {
  body:has(#why-ideahub.view.active) .layout { height: auto; min-height: 0; }
  body:has(#why-ideahub.view.active) .main { overflow-y: visible; padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 767px) {
  .why-comparison { padding: 12px 10px; }
  .why-matrix { min-width: 880px; }
  .why-matrix tr > :first-child:not([colspan]) { width: 145px; }
  .why-matrix th, .why-matrix td { padding: 8px 7px; }
  .why-swipe { display: block; }
}
