:root {
   color-scheme: light;
   --page-bg: #f4f7fb;
   --panel-bg: #ffffff;
   --header-bg: #eaf1fb;
   --header-strong: #dbe8f8;
   --border: #ced9e7;
   --border-dark: #aebdd0;
   --text: #1d2939;
   --muted: #667085;
   --accent: #2563eb;
   --accent-dark: #1746a2;
   --bar: #4f8df7;
   --bar-edge: #2368db;
   --negative-bg: transparent;
   --negative-text: #a33a3a;
   --stripe: #f8fafc;
   --unknown: #a5acb6;
   --shadow: 0 14px 36px rgba(31, 51, 73, 0.09);
}

* {
   box-sizing: border-box;
}

html {
   scroll-behavior: auto;
   background: var(--page-bg);
}

body {
   margin: 0;
   min-width: 320px;
   background: radial-gradient(circle at 10% 0%, rgba(79, 141, 247, 0.10), transparent 512px), var(--page-bg);
   color: var(--text);
   font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
   line-height: 1.55;
}

a {
   color: var(--accent-dark);
   text-underline-offset: 0.16em;
}

   a:hover {
      color: var(--accent);
   }

.site-header,
main,
.site-footer {
   width: min(100% - 32px, 1760px);
   margin-inline: auto;
}

.site-header {
   padding: 40px 0 20px;
}

.eyebrow {
   margin: 0 0 6px;
   color: var(--accent-dark);
   font-size: 12px;
   font-weight: 800;
   letter-spacing: 0.11em;
   text-transform: uppercase;
}

h1 {
   margin: 0;
   font-size: clamp(32px, 4vw, 55px);
   line-height: 1.08;
   letter-spacing: -0.035em;
}

.lede {
   margin: 16px 0 0;
   color: #475467;
   font-size: 17px;
}

.meta-line {
   margin: 12px 0 0;
   color: var(--muted);
   font-size: 14px;
}

main {
   padding-bottom: 32px;
}

.comparison-panel {
   overflow: hidden;
   border: 1px solid var(--border);
   border-radius: 16px;
   background: var(--panel-bg);
   box-shadow: var(--shadow);
}

.comparison-intro {
   padding: 22px 22px 4px;
}

   .comparison-intro h2 {
      margin: 0;
      font-size: 22px;
   }

   .comparison-intro p {
      margin: 7px 0 13px;
      color: var(--muted);
   }

#compare-controls {
   padding: 0 22px 18px;
}

.filter-fieldset {
   margin: 0;
   padding: 0;
   border: 0;
}

   .filter-fieldset legend {
      margin-bottom: 10px;
      font-size: 14px;
      font-weight: 800;
   }

.filter-list {
   display: flex;
   flex-wrap: wrap;
   gap: 8px 10px;
   align-items: center;
}

.filter-option {
   display: inline-flex;
   min-height: 34px;
   align-items: center;
   gap: 7px;
   padding: 6px 10px;
   border: 1px solid var(--border);
   border-radius: 8px;
   background: #fbfdff;
   color: #344054;
   cursor: pointer;
   font-size: 13px;
   font-weight: 650;
   user-select: none;
}

   .filter-option:hover {
      border-color: #8eb5ef;
      background: #f2f7ff;
   }

   .filter-option:has(input:focus-visible) {
      outline: 3px solid rgba(37, 99, 235, 0.22);
      outline-offset: 1px;
   }

   .filter-option input {
      width: 16px;
      height: 16px;
      margin: 0;
      accent-color: var(--accent);
      cursor: pointer;
   }

.table-scroll {
   max-width: 100%;
   overflow: auto;
   border-top: 1px solid var(--border);
   background: #fff;
   scrollbar-color: #b9c8da #eef3f8;
}

.comparison-table {
   width: 100%;
   border-collapse: separate;
   border-spacing: 0;
   font-size: 13px;
   font-variant-numeric: tabular-nums;
}


   .comparison-table [data-fixed-side] {
      position: sticky;
      background-clip: border-box;
   }

   .comparison-table tbody [data-fixed-side] {
      z-index: 2;
      background-color: #ffffff;
   }

   .comparison-table tbody tr:nth-child(even) > [data-fixed-side] {
      background-color: var(--stripe);
   }

   .comparison-table tbody tr:hover > [data-fixed-side] {
      background-color: #edf5ff;
   }

   .comparison-table thead [data-fixed-side] {
      z-index: 9;
      background-color: var(--header-bg);
   }

   .comparison-table thead tr.range-row [data-fixed-side] {
      z-index: 8;
      background-color: #f2f6fc;
   }

   .comparison-table thead [data-fixed-side][aria-sort="ascending"],
   .comparison-table thead [data-fixed-side][aria-sort="descending"] {
      background-color: var(--header-strong);
   }


   /*
      Draw right-pane dividers above sticky cell backgrounds. A normal table
      border can be covered by the adjacent sticky cell at maximum scroll.
    */

   /*
      Right fixed columns use their own left-edge overlay as the only divider.
      Removing their normal right border prevents a 2px line before scrolling
      and keeps the divider width constant at every horizontal scroll position.
    */
   .comparison-table [data-fixed-side="right"] {
      border-right-color: transparent;
   }

      .comparison-table [data-fixed-side="right"]::before {
         content: "";
         position: absolute;
         z-index: 2;
         top: 0;
         bottom: 0;
         left: 0;
         width: 1px;
         background-color: var(--border);
         pointer-events: none;
      }

.fixed-left-edge {
   box-shadow: 6px 0 8px -7px rgba(31, 51, 73, 0.7);
}

.fixed-right-edge {
   box-shadow: -6px 0 8px -7px rgba(31, 51, 73, 0.7);
}

.comparison-table caption {
   position: absolute;
   width: 1px;
   height: 1px;
   overflow: hidden;
   clip-path: inset(50%);
   white-space: nowrap;
}

.comparison-table th,
.comparison-table td {
   padding: 6px 6px 6px 1px;
   border-right: 1px solid var(--border);
   border-bottom: 1px solid var(--border);
   vertical-align: middle;
   white-space: nowrap;
}

.comparison-table th:last-child,
.comparison-table td:last-child {
   border-right: 0;
}

.comparison-table .text-cell,
.comparison-table .link-cell {
   padding-left: 6px;
   padding-right: 4px;
}

.comparison-table .index-cell {
   padding-left: 6px;
   padding-right: 6px;
}

.comparison-table thead th {
   position: sticky;
   z-index: 4;
   top: 0;
   padding: 0;
   background: var(--header-bg);
   color: #253858;
   text-align: center;
}

.comparison-table thead tr.range-row th {
   top: 42px;
   z-index: 3;
   height: 42px;
   padding: 4px 6px 4px 2px;
   border-bottom-color: var(--border-dark);
   background: #f2f6fc;
   color: var(--muted);
   font-size: 11px;
   font-weight: 650;
   line-height: 1.15;
   text-align: right;
}

.range-value {
   display: block;
   width: 100%;
   text-align: right;
}

.sort-button {
   display: flex;
   width: 100%;
   min-height: 42px;
   align-items: center;
   justify-content: center;
   gap: 5px;
   padding: 8px 6px;
   border: 0;
   background: transparent;
   color: inherit;
   cursor: pointer;
   font: inherit;
   font-weight: 800;
   line-height: 1.18;
   text-align: center;
}

   .sort-button:hover,
   .sort-button:focus-visible {
      background: var(--header-strong);
   }

   .sort-button:focus-visible {
      position: relative;
      z-index: 2;
      outline: 3px solid rgba(37, 99, 235, 0.28);
      outline-offset: -3px;
   }

th[aria-sort="ascending"],
th[aria-sort="descending"] {
   background: var(--header-strong);
   color: #163a70;
}

.sort-icon {
   color: var(--accent-dark);
   font-size: 14px;
   line-height: 1;
}

.comparison-table tbody tr:nth-child(even) {
   background: var(--stripe);
}

.comparison-table tbody tr:hover {
   background: #edf5ff;
}

.comparison-table tbody th[scope="row"] {
   background: inherit;
   text-align: left;
   font-weight: 850;
}

.comparison-table td {
   text-align: right;
}

.comparison-table .text-cell {
   text-align: left;
}

.comparison-table .version-cell {
   text-align: left; padding-left:6px;
}

.comparison-table .link-cell {
   text-align: center;
}

.comparison-table .total-cell,
.comparison-table .total-header {
   font-weight: 900;
}

.comparison-table .chart-cell,
.comparison-table .chart-header {
   width: 150px;
   min-width: 150px;
   max-width: 150px;
}


.feature-column {
   width: 30px;
   min-width: 30px;
   max-width: 30px;
}

.comparison-table thead th.feature-header {
   height: 84px;
   padding: 0;
   overflow: visible;
   vertical-align: middle;
}

.feature-sort-button {
   position: relative;
   display: block;
   width: 30px;
   height: 84px;
   padding: 0;
   border: 0;
   background: transparent;
   color: inherit;
   cursor: pointer;
   font: inherit;
   font-weight: 800;
   overflow: visible;
}

   .feature-sort-button:hover,
   .feature-sort-button:focus-visible {
      background: var(--header-strong);
   }

   .feature-sort-button:focus-visible {
      outline: 3px solid rgba(37, 99, 235, 0.28);
      outline-offset: -3px;
   }

.feature-header-caption {
   position: absolute;
   top: 50%;
   left: 50%;
   display: inline-block;
   white-space: nowrap;
   transform: translate(-50%, -50%) rotate(285deg);
   transform-origin: center;
   line-height: 1;
}

.feature-sort-icon {
   position: absolute;
   right: 2px;
   bottom: 2px;
}

.comparison-table td.feature-cell {
   width: 30px;
   min-width: 30px;
   max-width: 30px;
   padding: 4px 2px;
   text-align: center;
}

.feature-checkbox {
   width: 15px;
   height: 15px;
   margin: 0;
   vertical-align: middle;
   accent-color: var(--accent);
   pointer-events: none;
}

   .feature-checkbox:disabled {
      opacity: 1;
      cursor: default;
   }

.chart-track {
   position: relative;
   width: 100%;
   height: 20px;
}

.chart-bar {
   position: absolute;
   top: 3px;
   right: 5%;
   height: 14px;
   min-width: 2px;
   border: 1px solid var(--bar-edge);
   border-radius: 3px 0 0 3px;
   background: linear-gradient(90deg, #82b0fb, var(--bar));
   box-shadow: inset 0 1px 0 rgba(255,255,255,0.38);
}

.negative {
   background: var(--negative-bg) !important;
   color: var(--negative-text);
}


/* Keep horizontally scrolling cells behind both fixed panes. */
.table-scroll,
.comparison-table {
   isolation: isolate;
}

   .comparison-table tbody > tr > :not([data-fixed-side]) {
      position: static;
      z-index: auto;
   }

   .comparison-table tbody > tr > [data-fixed-side] {
      z-index: 20;
      background-color: #ffffff !important;
   }

   .comparison-table tbody > tr:nth-child(even) > [data-fixed-side] {
      background-color: var(--stripe) !important;
   }

   .comparison-table tbody > tr:hover > [data-fixed-side] {
      background-color: #edf5ff !important;
   }

   .comparison-table thead [data-fixed-side] {
      z-index: 40;
   }

   .comparison-table thead tr.range-row [data-fixed-side] {
      z-index: 39;
   }

.negative-number {
   display: inline-block;
   padding: 0 3px;
   border-radius: 3px;
   background: var(--negative-bg);
   color: var(--negative-text);
}

.cell-title-marker {
   color: #d22f2f;
   font-weight: 900;
   margin-left: 3px;
   cursor: help;
}

.range-value .negative-number {
   padding: 0px;
}


.is-unknown,
.is-unknown a {
   color: var(--unknown) !important;
}

   .is-unknown .chart-bar {
      border-color: #b9bec6;
      background: #c9cdd3;
   }

.price-cell {
   text-align: right;
}

.index-cell {
   text-align: center !important;
   font-weight: 750;
}

.methodology {
   display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 16px;
   margin-top: 20px;
}

   .methodology section {
      padding: 19px 21px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: rgba(255,255,255,0.76);
   }

   .methodology section:first-child {
      grid-column: 1 / -1;
   }


.methodology h2 {
   margin: 0 0 7px;
   font-size: 17px;
}

   .methodology p {
      margin: 0;
      color: #526174;
      font-size: 15px;
   }

.site-footer {
   padding: 6px 0 35px;
   color: var(--muted);
   font-size: 13px;
}

.noscript-message,
.error-message {
   margin: 16px 22px 22px;
   padding: 14px 16px;
   border: 1px solid #e7b7b7;
   border-radius: 8px;
   background: #fff4f4;
   color: #8e2f2f;
}

.visually-hidden {
   position: absolute !important;
   width: 1px !important;
   height: 1px !important;
   padding: 0 !important;
   margin: -1px !important;
   overflow: hidden !important;
   clip: rect(0, 0, 0, 0) !important;
   white-space: nowrap !important;
   border: 0 !important;
}

@media (max-width: 1359px) {
   .comparison-table .index-cell {
      padding-left: 4px;
      padding-right: 4px;
   }

   .comparison-table .text-cell,
   .comparison-table .link-cell {
      padding-left: 5px;
      padding-right: 2px;
   }

   .comparison-table .version-cell {
      padding-right: 2px;
   }

   .comparison-table .price-cell,
   .comparison-table .points-cell:has(~ .points-cell),
   .comparison-table .total-cell,
   .comparison-table .difference-cell {
      padding-left: 2px;
      padding-right: 5px;
   }

   .sort-button {
      padding-left: 0px;
      padding-right: 0px;
   }

   .comparison-table .chart-cell,
   .comparison-table .chart-header {
      width: 100px;
      min-width: 100px;
      max-width: 100px;
   }
}

@media (max-width: 820px) {
   .site-header,
   main,
   .site-footer {
      width: min(100% - 16px, 1680px);
   }

   .site-header {
      padding-top: 24px;
   }

   .comparison-intro,
   #compare-controls {
      padding-inline: 14px;
   }

   .methodology {
      grid-template-columns: 1fr;
   }
}

@media print {
   body {
      background: #fff;
   }

   .site-header,
   main,
   .site-footer {
      width: 100%;
   }

   #compare-controls,
   .methodology,
   .site-footer {
      display: none;
   }

   .comparison-panel {
      border: 0;
      box-shadow: none;
   }

   .table-scroll {
      overflow: visible;
   }

   .comparison-table {
      min-width: 0;
      font-size: 7pt;
   }

      .comparison-table thead th {
         position: static;
      }
}

/* The page scrolls vertically, while .table-scroll scrolls horizontally.
       A viewport overlay mirrors the real header without changing table layout. */
@media screen {
   #compare-table .comparison-table thead th {
      top: auto;
   }
}

.comparison-sticky-header {
   position: fixed;
   z-index: 1000;
   top: 0;
   overflow: hidden;
   background: var(--header-bg);
   box-shadow: 0 3px 7px rgba(31, 51, 73, 0.15);
   isolation: isolate;
}

   .comparison-sticky-header[hidden] {
      display: none;
   }

   .comparison-sticky-header .comparison-table {
      position: relative;
      display: block;
      margin: 0;
   }

   .comparison-sticky-header thead,
   .comparison-sticky-header tr {
      display: block;
      position: static;
   }

   .comparison-sticky-header .comparison-table thead th {
      position: absolute;
      margin: 0;
      min-width: 0;
      max-width: none;
   }

@media print {
   .comparison-sticky-header {
      display: none !important;
   }

   .comparison-sticky-scrollbar {
      display: none !important;
   }
}

/* Fixed horizontal scrollbar mirroring .table-scroll.
   It is hidden while the native table scrollbar is visible. */
.comparison-sticky-scrollbar {
   position: fixed;
   z-index: 1100;
   right: 0;
   bottom: 0;
   left: 0;
   display: block;
   height: 18px;
   overflow-x: auto;
   overflow-y: hidden;
   border: 1px solid var(--border);
   border-bottom: 0;
   background: #eef3f8;
   box-shadow: 0 -3px 8px rgba(31, 51, 73, 0.14);
   scrollbar-color: #9fb2c9 #eef3f8;
   isolation: isolate;
}

.comparison-sticky-scrollbar[hidden] {
   display: none;
}

.comparison-sticky-scrollbar-content {
   height: 1px;
   min-width: 1px;
}


/* Layout markers from numeric entries in Checkboxes. */
.filter-separator {
   flex: 0 0 1px;
   width: 1px;
   height: 26px;
   background: var(--border-dark);
   margin-inline: 2px;
}

.filter-break {
   flex: 0 0 100%;
   width: 100%;
   height: 0;
   padding: 0;
   border: 0;
}


/* Raw benchmark view: retain the original fixed panes and page design. */
.comparison-table tbody tr,
.comparison-table tbody tr > th,
.comparison-table tbody tr > td {
  height: 33px;
}
.comparison-table tbody tr > th,
.comparison-table tbody tr > td {
  padding-top: 0;
  padding-bottom: 0;
}
.comparison-table .raw-data-cell {
  min-width: 72px;
  padding: 0 6px;
}
.raw-time {
  display: block;
  height: 12px;
  line-height: 12px;
  font-size: 10px;
  font-weight: 400;
  color: #2563eb;
}
.raw-points {
  display: block;
  height: 15px;
  line-height: 15px;
  font-size: 12px;
}
.comparison-table .raw-excluded {
  background-color: rgba(102, 112, 133, .06);
}
.raw-excluded .raw-points { color: var(--muted); }
.comparison-table .raw-category-summary {
  border-left: 2px solid var(--border-dark);
  font-weight: 900;
  min-width: 80px;
}
.comparison-table .raw-set-summary {
  border-left: 1px solid var(--border-dark);
  font-weight: 800;
  min-width: 72px;
}
.comparison-table tbody .raw-category-summary,
.comparison-table tbody .raw-set-summary {
  background-color: rgba(79, 141, 247, .07);
}
.comparison-table thead tr:first-child > th .sort-button {
  height: 76px;
  min-height: 76px;
  font-size: 12px;
}
.comparison-table thead tr.range-row th {
  top: 76px;
}
.comparison-table .raw-leaf .sort-button {
  min-width: 72px;
  padding-inline: 6px;
}

/* Hierarchical column headings. Summary columns are retained as Σ. */
.comparison-table thead tr.raw-header-level {
  height: 30px;
}
.comparison-table thead tr.raw-header-level > th {
  height: 30px;
}
.comparison-table thead tr.raw-header-level > th .sort-button {
  height: 100%;
  min-height: 30px;
  padding: 5px 6px;
  font-size: 12px;
}
.comparison-table thead .raw-group-header {
  background: var(--header-strong);
  border-left: 1px solid var(--border-dark);
}
.comparison-table thead tr.raw-header-level > th[rowspan="2"] {
  height: 60px;
}
.comparison-table thead tr.raw-header-level > th[rowspan="3"] {
  height: 90px;
}
.comparison-table thead tr.raw-header-level > th[rowspan="2"] .sort-button {
  min-height: 60px;
}
.comparison-table thead tr.raw-header-level > th[rowspan="3"] .sort-button {
  min-height: 90px;
}
.comparison-table thead tr.range-row th { top: auto; }
.comparison-table .raw-points { display: block; }


/* Compact non-fixed columns. Fixed panes keep their intrinsic widths. */
#compare-table .comparison-table th[data-column-index]:not([data-fixed-side]):not(.raw-wide-column):is(.raw-leaf, .raw-set-summary, .raw-category-summary),
#compare-table .comparison-table td[data-column-index]:not([data-fixed-side]):not(.raw-wide-column):is(.raw-leaf, .raw-set-summary, .raw-category-summary) {
   width: 35px !important;
   min-width: 35px !important;
   max-width: 35px !important;
}

/* Header labels may wrap inside the compact columns. */
.comparison-table thead th,
.comparison-table thead th .sort-button,
.comparison-table thead th .sort-button > span {
   white-space: normal;
}

/* These columns are explicitly excluded from the compact 35px rule. */
#compare-table .comparison-table th.raw-wide-column,
#compare-table .comparison-table td.raw-wide-column {
   width: 50px !important;
   min-width: 50px !important;
   max-width: 50px !important;
}

.comparison-table thead th.raw-leaf .sort-button {
   min-width: 0;
   width: 100%;
}
.comparison-table thead tr.raw-header-level > th .sort-button {
   padding-inline: 2px;
   gap: 2px;
}
.comparison-table thead th .sort-button > span:first-child {
   min-width: 0;
}
.comparison-table thead th .sort-icon {
   flex-shrink: 0;
}


/* Only the two small viewport overlays get explicit paint containment.
   Do not promote thousands of table cells into separate layers. */
.comparison-sticky-header {
   contain: layout paint;
}
.comparison-sticky-scrollbar {
   box-sizing: content-box;
   border-left: 0;
   border-right: 0;
   right: auto;
   contain: layout paint;
   scroll-behavior: auto;
}


/* Fixed row-selection filter column. */
.comparison-table .filter-column,
.comparison-table .filter-header {
   width: 30px;
   min-width: 30px;
   max-width: 30px;
}

.comparison-table thead th.filter-header {
   height: 60px;
   padding: 0;
   text-align: center;
}

.filter-header-checkbox,
.filter-row-checkbox {
   width: 15px;
   height: 15px;
   margin: 0;
   accent-color: var(--accent);
   cursor: pointer;
   vertical-align: middle;
}

.comparison-table td.filter-cell {
   width: 30px;
   min-width: 30px;
   max-width: 30px;
   padding: 2px 2px 6px 2px;
   text-align: center;
}
/* Vertically center the Filter checkbox in the fixed sticky header. */
.comparison-sticky-header th.filter-header {
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 0;
   line-height: 0;
}

.comparison-sticky-header th.filter-header .filter-header-checkbox {
   display: block;
   margin: 0;
}

/* On narrow screens only Mobile retains its fixed side. */
@media screen and (width < 800px) {
   /* Unpin only source-table cells. The floating header uses absolute
      positioning for every cell, including columns unpinned on mobile. */
   #compare-table .comparison-table [data-fixed-side]:not(.mobile-column) {
      position: static;
   }

   .comparison-table tbody > tr > [data-fixed-side]:not(.mobile-column) {
      z-index: auto;
      background-color: inherit !important;
   }

   .comparison-table thead [data-fixed-side]:not(.mobile-column),
   .comparison-table thead tr.range-row [data-fixed-side]:not(.mobile-column) {
      z-index: auto;
   }

   .comparison-sticky-scrollbar {
      display: none !important;
   }
}

/* Mobile summary: two explicit lines, with no automatic text wrapping. */
.comparison-table .mobile-column {
   box-sizing: border-box;
   width: 130px !important;
   min-width: 130px !important;
   max-width: 130px !important;
   white-space: nowrap;
}
.comparison-table .mobile-column .sort-button,
.comparison-table .mobile-column .sort-button > span {
   white-space: nowrap;
}
.comparison-table tbody > tr > td.mobile-cell {
   padding: 0 !important;
   text-align: left;
   line-height: 1;
}
.mobile-content {
   box-sizing: border-box;
   width: 130px;
   height: 23px;
   white-space: nowrap;
}
.mobile-top {
   box-sizing: border-box;
   width: 130px;
   padding-inline: 2px;
   display: flex;
   flex-wrap: nowrap;
   align-items: center;
   gap: 3px;
   height: 13px;
   line-height: 13px;
   font-size: 11px;
   margin-top:-2px;
}
.mobile-header-values > span {
   width: auto;
}

.mobile-index,
.mobile-total,
.mobile-difference,
.mobile-sumfeatures {
   display: inline-block;
   flex-shrink: 0;
   width: 30px;
   text-align: right;
   font-size: 11px;
   white-space: nowrap;
}
.mobile-index { width: 15px; }
/* Fit signed four-digit scores with a thousands separator into 30px. */
.mobile-total,
.mobile-difference {
   font-family: Arial, sans-serif;
   letter-spacing: -0.65px;
}
.mobile-index { color: #2a5298; }
.mobile-total { color: #3a3aa3; font-weight:600; }
.mobile-difference { color: #a33a3a; }
.mobile-sumfeatures {
   width: 22px;
   font-family: Arial, sans-serif;
   font-style: italic;
}
.mobile-id {
   display: block;
   box-sizing: border-box;
   width: 130px;
   height: 12px;
   overflow: hidden;
   text-overflow: clip;
   white-space: nowrap;
   text-align: left;
   font-size: 11px;
   font-weight: 700;
   line-height: 12px;
   padding-left:2px;
}
.comparison-table .mobile-checkbox {
   flex: 0 0 11px;
   width: 11px;
   height: 11px;
   margin: 0;
}
.comparison-table thead th.mobile-filter-header {
   padding: 0;
   text-align: center;
   vertical-align: middle;
   line-height: 0;
}
/* Same horizontal position as in rows: cell padding + rank width + gap.
   Absolute positioning also works in the cloned, fixed header. */
.comparison-table thead th.mobile-filter-header .mobile-checkbox {
   position: absolute;
   left: calc(2px + 15px + 3px);
   top: 50%;
   transform: translateY(-50%);
}
.comparison-table thead th.mobile-filter-header .mobile-filter-label {
   position: absolute;
   left: calc(2px + 15px + 3px + 11px + 3px);
   top: 50%;
   transform: translateY(-50%);
   color: var(--muted);
   font-size: 10px;
   font-weight: 700;
   line-height: 1;
   white-space: nowrap;
   pointer-events: none;
}
.comparison-table td.mobile-cell,
.comparison-table thead th.mobile-filter-header {
   cursor: pointer;
}
@media screen and (min-width: 800px) {
   .comparison-table .mobile-column { display: none !important; }
}
@media print {
   .comparison-table .mobile-column { display: none !important; }
}

/* Mobile score chart: same scale as Chart, growing from the left.
   Keep the bar behind the content and out of pointer hit testing. */
.comparison-table tbody > tr > td.mobile-cell:not([data-fixed-side]) {
   position: relative;
}
/* Inset the chart area by 2px on every side; percentages use this area. */
.comparison-table td.mobile-cell > .mobile-chart-track {
   position: absolute;
   inset: 3px;
   z-index: 0;
   pointer-events: none;
}
.comparison-table td.mobile-cell .mobile-chart-track > .mobile-chart-bar {
   z-index: 0;
   top: 0;
   bottom: 0;
   left: 0;
   right: auto;
   height: auto;
   border-radius: 0 3px 3px 0;
   opacity: 0.20;
   pointer-events: none;
}
.comparison-table td.mobile-cell > .mobile-content {
   position: relative;
   z-index: 1;
}

/* Measurements add a fourth header level; sticky copies use measured geometry. */
.comparison-table thead tr.raw-header-level > th[rowspan="4"] {
   height: 120px;
}
.comparison-table thead tr.raw-header-level > th[rowspan="4"] .sort-button {
   min-height: 120px;
}
.comparison-table .raw-measurement-summary {
   border-left: 1px solid var(--border-dark);
   font-weight: 800;
}
.comparison-table tbody .raw-measurement-summary {
   background-color: rgba(79, 141, 247, .07);
}

/* Captions such as "Medium" must fit the existing compact 35px columns. */
.comparison-table thead th.raw-measurement .sort-button > span:first-child {
   overflow-wrap: anywhere;
   line-height: 1.1;
}


/* Reset is an overlay at the bottom-left of the table header, not a column.
   The viewport header gets its own button outside the horizontally moving copy. */
#compare-table { position: relative; }
.grid-reset-settings {
   position: absolute;
   z-index: 60;
   left: 8px;
   height: 26px;
   max-width: calc(100% - 16px);
   padding: 2px 7px;
   border: 1px solid var(--border-dark);
   border-radius: 3px;
   background: var(--panel-bg);
   color: var(--accent-dark);
   font-family: inherit;
   font-size: 11px;
   font-weight: 600;
   line-height: 20px;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
   cursor: pointer;
}
#compare-table > .grid-reset-settings { top: 0; }
.comparison-sticky-header > .grid-reset-settings { bottom: 8px; }

/* When Mobile is the fixed right pane, Reset settings follows its right edge. */
.grid-reset-settings.grid-reset-settings-mobile {
   left: auto;
   right: 8px;
}

.grid-reset-settings:hover { background: var(--header-strong); }
.grid-reset-settings:focus-visible {
   outline: 2px solid var(--accent);
   outline-offset: 1px;
}
@media print {
   .grid-reset-settings { display: none !important; }
}
