/* elitesoft — comparison (also the small comparison on the product page). */
.cmp-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: end; margin-bottom: 24px; }
.cmp-pick { border: 0; padding: 0; margin: 0; grid-column: 1 / -1; min-width: 0; }
.cmp-pick legend { font-size: 14px; color: var(--muted); margin-bottom: 10px; padding: 0; }
.cmp-pick__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--line-2); font-weight: 500; transition: background-color var(--d-fast) ease, color var(--d-fast) ease, border-color var(--d-fast) ease; }
.chip span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .6; }
.chip input:checked + span { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.chip input:checked + span::before { background: currentColor; opacity: 1; }
.chip input:disabled + span { opacity: .4; cursor: not-allowed; }
.chip input:focus-visible + span { outline: 2px solid var(--tungsten); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .chip input:not(:checked):not(:disabled):hover + span { border-color: rgba(238, 234, 227, .4); background: rgba(238, 234, 227, .06); } }
.switch { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; position: relative; width: 40px; height: 24px; margin: 0; border-radius: var(--r-pill); background: var(--surface-3); border: 1px solid var(--line-2); cursor: pointer; flex: none; transition: background-color var(--d-fast) ease, border-color var(--d-fast) ease; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transition: transform var(--d-ui) var(--ease-out); }
.switch input:checked { background: var(--tungsten); border-color: var(--tungsten); }
.switch input:checked::after { transform: translateX(16px); background: var(--tungsten-ink); }
.cmp-link label { display: block; font-size: var(--t-xs); color: var(--muted); margin-bottom: 6px; }
.cmp-link__row { display: flex; gap: 8px; }
.cmp-link input { flex: 1; min-width: 0; min-height: 44px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: rgba(238, 234, 227, .05); color: var(--ink); padding: 0 16px; font: 400 14px var(--sans); }
.cmp-link .btn { min-height: 44px; flex: none; }
@media (max-width: 760px) { .cmp-tools { grid-template-columns: minmax(0, 1fr); } }
.cmp { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: var(--surface); animation: fadein var(--d-fast) ease-out; }
.cmp__row { display: grid; grid-template-columns: minmax(170px, 1.1fr) repeat(var(--cols), minmax(0, 1fr)); border-top: 1px solid var(--line); transition: background-color 120ms ease; }
.cmp__row--head { border-top: 0; background: var(--surface-2); }
.cmp__label, .cmp__cell { padding: 15px 18px; min-width: 0; transition: background-color 120ms ease; }
.cmp__label { color: var(--muted); font-size: var(--t-sm); }
.cmp__cell { font-size: var(--t-sm); overflow-wrap: break-word; hyphens: auto; font-variant-numeric: tabular-nums; }
.cmp__head { display: grid; gap: 4px; align-content: end; }
.cmp__headart { height: 110px; border-radius: var(--r-sm); background: linear-gradient(180deg, var(--sky1), var(--sky2)); padding: 8px; margin-bottom: 10px; }
.cmp__headart .art { width: 100%; height: 100%; }
.cmp__name { font: 600 24px/1.1 var(--display); text-decoration: none; overflow-wrap: break-word; }
.cmp__vendor { font-size: var(--t-xs); color: var(--muted); }
.cmp__legend { font-size: var(--t-xs); display: inline-flex; gap: 8px; align-items: center; color: var(--ink-soft); }
.cmp__legend::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--tungsten); box-shadow: 0 0 10px var(--tungsten); flex: none; }
.cmp__row.is-diff { background: linear-gradient(90deg, rgba(242, 176, 94, .1), rgba(242, 176, 94, .025) 60%); box-shadow: inset 2px 0 0 var(--tungsten); }
.cmp__row.is-diff .cmp__label { color: var(--ink); font-weight: 600; }
.cmp__row.is-diff .cmp__label::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--tungsten); margin-right: 10px; vertical-align: 2px; box-shadow: 0 0 10px var(--tungsten); }
/* crosshair: the hovered row and column light up (pointer only) */
@media (hover: hover) and (pointer: fine) {
  .cmp__row:not(.cmp__row--head):hover { background-color: rgba(238, 234, 227, .045); }
  .cmp[data-col="1"] .cmp__row > :nth-child(2), .cmp[data-col="2"] .cmp__row > :nth-child(3),
  .cmp[data-col="3"] .cmp__row > :nth-child(4), .cmp[data-col="4"] .cmp__row > :nth-child(5) { background-color: rgba(142, 193, 230, .06); }
}
@media (max-width: 700px) {
  /* narrow screens: the table scrolls sideways inside its frame instead of breaking words */
  .cmp { overflow-x: auto; overscroll-behavior-x: contain; }
  .cmp__row { grid-template-columns: repeat(var(--cols), minmax(118px, 1fr)); min-width: calc(var(--cols) * 118px); }
  .cmp[style*="--cols:2"] .cmp__row { min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmp__label { grid-column: 1 / -1; padding-bottom: 0; }
  .cmp__row--head .cmp__label { display: none; }
  .cmp__label, .cmp__cell { padding-inline: 10px; }
  .cmp__cell { font-size: 14px; }
  .cmp__name { font-size: 16px; }
  .cmp__headart { height: 64px; }
}
.chip small { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ---------- theme additions ---------- */
.cmp-pick__legend { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.cmp-pick__opts { list-style: none; margin: 0 0 18px; padding: 0; }
.chip--on span { background: var(--ink); color: var(--ground); border-color: var(--ink); padding-right: 6px; }
.chip--on span::before { background: currentColor; opacity: 1; }
.chip__x { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-left: 4px; border-radius: 50%; color: inherit; text-decoration: none; font-size: 18px; line-height: 1; }
.chip__x:hover { background: rgba(11, 14, 18, .12); }
.cmp-add label { display: block; font-size: var(--t-xs); color: var(--muted); margin-bottom: 6px; }
.cmp-add select { flex: 1; min-width: 0; max-width: 420px; min-height: 44px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 0 14px; font: 400 15px var(--sans); }
.cmp-add select:focus-visible { outline: 2px solid var(--tungsten); outline-offset: 2px; }
.cmp-add .btn { min-height: 44px; }
.cmp__headart--sheet { background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 12px 12px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 12px 12px, var(--sheet); padding: 0; overflow: hidden; }
.cmp.is-only .cmp__row:not(.is-diff):not(.cmp__row--head) { display: none; }
.cmp-choose { border-top: 1px solid var(--line-2); padding-top: 28px; }
.cmp-choose__hint { color: var(--muted); }
.cmp-choose__hint a { color: var(--ink); }
.cmp-choose__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; margin-top: 24px; }
.cmp-choose__cat h3 { font: 600 18px/1.2 var(--display); margin-bottom: 8px; color: var(--draft); }
.cmp-choose__cat ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cmp-choose__cat a { display: flex; align-items: center; min-height: 40px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 15px; }
.cmp-choose__cat a:hover { color: var(--tungsten); }
.cmp__headart { position: relative; overflow: hidden; }
.cmp__headart--photo { padding: 0; }
.cmp__headart--photo .es-photo { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: cover; }
.cmp__headart--photo { background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 12px 12px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 12px 12px, var(--sheet); }
