/* Reference-image edition: compact toolbar, faceted rail and image-first cards. */
.compare { --accent: #006bd6; --ink: #202124; --muted: #777b81; --line: #e7e9ed; }
.compare .header { min-height: 58px; max-width: none; padding: 0 max(40px, calc((100% - 1328px) / 2)); }
.compare .brand { gap: 10px; font-size: 16px; font-weight: 600; }
.compare .brand img { width: 28px; height: 28px; }
.compare .brand-separator { display: none; }
.compare nav { gap: 28px; }
.compare .header nav a { padding: 17px 0; font-size: 13px; }
.compare .header nav .current { color: var(--accent); font-weight: 600; }
.compare .language-switch { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 5px; padding: 2px; flex: none; margin-left: 4px; }
.compare .language-switch button { min-width: 38px; min-height: 30px; padding: 3px 8px; border-radius: 3px; color: #747a82; font-size: 12px; }
.compare .language-switch button[aria-pressed="true"] { background: #e9f2fe; color: #006bd6; font-weight: 600; }
html[lang="en"] .compare .reference-description { font-size: 13px; }
html[lang="en"] .compare .platform-filter small { font-size: 12px; }
html[lang="en"] .compare .detail-actions { flex-wrap: wrap; }
.compare main { max-width: 1408px; padding: 0 40px; }
.compare .page-heading { display: block; padding: 32px 0 28px; border: 0; margin-bottom: 0; }
.compare .heading-context { font-size: 12px; color: #777b81; }
.compare .page-heading h1 { font-size: 34px; line-height: 1.2; margin: 0; }
.compare .reference-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.compare .reference-toolbar .search { flex: none; width: 460px; max-width: 58%; height: 36px; border-radius: 5px; background: #f5f5f7; padding: 0 12px; gap: 10px; }
.compare .search input { font-size: 13px; }
.compare .reference-results { display: flex; align-items: center; gap: 18px; }
.compare .sort select { background: #f5f5f7; border: 1px solid var(--line); min-height: 36px; height: 36px; font-size: 12px; border-radius: 5px; padding: 0 10px; max-width: 156px; }
.compare .catalog-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; }
.compare .catalog-sidebar { border: 0; padding-right: 22px; }
.compare .catalog-sidebar .search { width: 100%; height: 44px; padding: 0 10px; border: 0; border-bottom: 1px solid #bfc2c6; border-radius: 0; background: #fff; margin-bottom: 18px; gap: 12px; }
.compare .catalog-sidebar .search:focus-within { outline: none; border-bottom: 2px solid var(--accent); }
.compare .catalog-sidebar .search input { font-size: 14px; }
.compare .catalog-sidebar .search input::placeholder { color: #85898e; opacity: 1; }
.compare .collection-count { display: flex; align-items: center; min-height: 28px; margin-bottom: 14px; }
.compare .sidebar-top { min-height: 28px; margin-bottom: 14px; }
.compare .sidebar-top > span { color: var(--ink); font-size: 14px; font-weight: 600; }
.compare .sidebar-top button { min-height: 28px; font-size: 12px; }
.compare .facet-group { padding: 17px 0; border: 0; margin: 0; }
.compare .facet-group > h2 { font-size: 14px; font-weight: 600; line-height: 1.6; margin: 0 0 12px; }
.compare .task-domains, .compare #platform-filters { border: 1px solid #dcdfe3; border-radius: 4px; padding: 5px 0; background: #fff; }
.compare .task-domain { margin: 0; }
.compare .domain-heading { display: flex; align-items: center; gap: 0; min-height: 40px; padding: 0 5px 0 10px; }
.compare .domain-label { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; min-height: 40px; text-align: left; padding: 6px 0; font-size: 14px; font-weight: 500; cursor: pointer; }
.compare .domain-symbol { width: 16px; height: 16px; flex: none; background: currentColor; mask: var(--domain-icon) center / contain no-repeat; }
.compare .domain-symbol-vision { --domain-icon: url('assets/icons/scan-eye.svg'); }
.compare .domain-symbol-llm { --domain-icon: url('assets/icons/sparkles.svg'); }
.compare .domain-symbol-robotics { --domain-icon: url('assets/icons/bot.svg'); }
.compare .domain-symbol-audio { --domain-icon: url('assets/icons/audio-lines.svg'); }
.compare .domain-symbol-multimodal { --domain-icon: url('assets/icons/layers.svg'); }
.compare .domain-label[data-active="true"] { color: var(--accent); font-weight: 600; }
.compare .domain-label[data-active="true"] .domain-symbol { --domain-icon: url('assets/icons/check.svg'); }
.compare .domain-heading:has(.domain-label[data-active="true"]) .domain-toggle { color: var(--accent); }
.compare .domain-toggle { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; flex: none; }
.compare .domain-toggle::after { content: ''; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.compare .domain-toggle[aria-expanded="true"]::after { transform: rotate(225deg); }
.compare .task-children { padding: 0 8px 8px 35px; }
.compare .task-option { display: flex; align-items: center; justify-content: space-between; gap: 5px; width: 100%; min-height: 36px; padding: 6px 0; font-size: 13px; line-height: 1.6; text-align: left; }
.compare .facet-option { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 40px; padding: 6px 10px; text-align: left; font-size: 14px; font-weight: 500; color: var(--ink); }
.compare .selection-mark { width: 16px; height: 16px; flex: none; background: currentColor; mask: url('assets/icons/check.svg') center / contain no-repeat; visibility: hidden; }
.compare .facet-option > .selection-mark { visibility: visible; }
.compare .platform-filter > .selection-mark { mask-image: url('assets/icons/cpu.svg'); }
.compare .facet-option[aria-pressed="true"] > .selection-mark { mask-image: url('assets/icons/check.svg'); }
.compare .task-option[aria-pressed="true"] { color: var(--accent); font-weight: 500; }
.compare .facet-option[aria-pressed="true"] { color: var(--accent); font-weight: 600; }
.compare [aria-pressed="true"] > .selection-mark { visibility: visible; }
.compare .task-option:hover, .compare .facet-option:hover, .compare .domain-label:hover { color: var(--accent); }
.compare .domain-heading:hover, .compare .facet-option:hover, .compare .task-option:hover { background: #f7f9fc; }
.compare .hardware-section .sidebar-group { margin: 0; }
.compare .facet-group > summary { color: var(--ink); font-size: 14px; font-weight: 600; min-height: 32px; padding: 0 0 9px; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.compare .facet-group > summary::-webkit-details-marker { display: none; }
.compare .facet-group > summary::after { content: ''; width: 6px; height: 6px; border-right: 1px solid #777b81; border-bottom: 1px solid #777b81; transform: rotate(-45deg); margin-right: 4px; }
.compare .facet-group[open] > summary::after { transform: rotate(45deg); }
.compare .sidebar-group { margin: 0; }
.compare .sidebar-group legend { display: none; }
.compare .catalog-sidebar .filters { gap: 0; }
.compare .catalog-sidebar .filter-number { display: none; }
.compare .platform-filter small { font-size: 12px; color: #7e858e; font-weight: 400; white-space: nowrap; }
.compare .catalog-layout .model-grid { gap: 28px 24px; }
.compare .model-card { border: 1px solid #e2e5e9; border-radius: 7px; background: white; overflow: hidden; transition: border-color 150ms, box-shadow 150ms; }
.compare .model-card:hover { border-color: #bfc8d4; box-shadow: 0 3px 12px #17202d0b; }
.compare .model-card .thumbnail { aspect-ratio: 16 / 9; border-radius: 0; margin: 0; }
.compare .model-card .thumbnail img { object-fit: cover; object-position: center; }
.compare .reference-card-body { padding: 14px 15px 16px; }
.compare .reference-card-body h3 { font-size: 20px; line-height: 1.3; color: var(--ink); margin: 0; overflow-wrap: anywhere; }
.compare .reference-description { font-size: 13px; line-height: 1.7; color: var(--muted); white-space: normal; overflow-wrap: anywhere; margin: 4px 0 9px; }
.compare .model-tags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 24px; }
.compare .model-tags > span { padding: 1px 6px; background: #f6f6f8; border: 1px solid #e8e9ec; border-radius: 3px; color: #70757d; font-size: 12px; line-height: 1.5; }
.compare .gallery-link:hover { color: inherit; }
.compare .load-more-trigger { display: flex; justify-content: center; padding-top: 24px; }
.compare .load-more-trigger button { min-height: 40px; padding: 8px 18px; color: var(--accent); border: 1px solid var(--line); border-radius: 5px; font-size: 13px; }
.compare .source-note { margin: 22px 0 0; font-size: 12px; }
.compare footer { background: #fff; margin-top: 32px; }
.compare .footer-inner { justify-content: center; text-align: center; }
@media (max-width: 1120px) {
  .compare .catalog-layout { grid-template-columns: 212px minmax(0, 1fr); gap: 26px; }
  .compare .catalog-layout .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .compare .catalog-sidebar { padding-right: 18px; }
  .compare .platform-filter small { display: none; }
}
@media (max-width: 760px) {
  .compare .domain-heading { min-height: 44px; }
  .compare .domain-toggle { width: 44px; height: 44px; }
  .compare .task-option, .compare .facet-option { min-height: 44px; }
  .compare #platform-filters { display: block; }
  .compare .header { column-gap: 8px; }
  .compare .language-switch { margin-left: auto; order: 1; }
  .compare .header nav { order: 2; }
  .compare .header { padding: 12px 20px 6px; }
  .compare .header nav { margin-top: 2px; }
  .compare .header nav a { padding: 8px 0; }
  .compare main { padding-inline: 20px; }
  .compare .page-heading { padding: 24px 0; margin-bottom: 0; }
  .compare .page-heading h1 { font-size: 30px; margin-bottom: 0; }
  .compare .reference-toolbar { flex-wrap: wrap; gap: 14px; }
  .compare .reference-toolbar .search { width: 100%; max-width: none; height: 42px; }
  .compare .reference-results { width: 100%; justify-content: space-between; }
  .compare .catalog-layout { display: block; }
  .compare .catalog-sidebar { border-right: 0; border-top: 0; padding-right: 0; }
  .compare .facet-group { padding-block: 16px; }
  .compare .catalog-layout .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .compare .reference-card-body { padding: 12px 12px 14px; }
  .compare .reference-card-body h3 { font-size: 18px; }
}
@media (max-width: 520px) {
  .compare .catalog-layout .model-grid { grid-template-columns: 1fr; gap: 22px; }
  .compare .reference-card-body { padding: 15px 16px 16px; }
  .compare .reference-card-body h3 { font-size: 21px; }
}
