/* Generated by tools/generate-category-pages.js. Edit the source CSS modules, then regenerate. */

/* tokens.css */
:root {
  --ink: #172033;
  --muted: #647084;
  --line: #d8dee8;
  --paper: #f6f8fb;
  --surface: #ffffff;
  --primary: #255f85;
  --primary-dark: #123b5a;
  --teal: #0f766e;
  --amber: #8a5a0a;
  --rose: #b23a48;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.10);
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

button,
a {
  touch-action: manipulation;
}

.summary-card strong,
.price-row strong,
.price-row small,
.score,
.compare-table th,
.compare-table td,
.mobile-dock strong {
  font-variant-numeric: tabular-nums;
}

/* layout.css */
.topbar {
  padding: 28px 0 22px;
  background: linear-gradient(135deg, #f9fbff 0%, #e9f1f5 52%, #f3f0e8 100%);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: center;
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
}

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

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.05;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

.subhead {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.ai-disclosure {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  max-width: 900px;
  margin-top: 14px;
  color: #466176;
  font-size: 13px;
}

.ai-disclosure-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: #fff;
  background: var(--teal);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.ai-disclosure a,
.rate-card a {
  color: var(--primary-dark);
  font-weight: 800;
  text-underline-offset: 3px;
}

.rate-card,
.summary-card,
.product-card,
.pick-card,
.compare-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.rate-card {
  padding: 16px 18px;
}

.rate-card span,
.summary-card span,
.field-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.rate-card strong {
  display: block;
  margin: 3px 0 6px;
  font-size: 20px;
}

.rate-card small {
  display: block;
  color: var(--muted);
}

.rate-card a {
  display: inline-flex;
  margin-top: 10px;
  font-size: 13px;
}

main {
  width: min(1480px, calc(100% - 32px));
  margin: 24px auto 48px;
}

.ad-placement {
  position: relative;
  min-width: 0;
  min-height: 160px;
  overflow: hidden;
  margin: 24px 0;
  padding: 34px 16px 16px;
  background: linear-gradient(135deg, rgba(37, 95, 133, 0.07), rgba(100, 112, 132, 0.03));
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.ad-placement.is-unfilled {
  display: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ad-label {
  position: absolute;
  top: 10px;
  left: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.adsbygoogle {
  width: 100%;
  min-width: 0;
}

footer {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 13px;
}

.project-source {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.project-source a {
  color: var(--primary-dark);
  font-weight: 800;
  text-underline-offset: 3px;
}

.project-policy {
  margin: 8px 0 0;
}

.project-policy a {
  color: var(--primary-dark);
  font-weight: 700;
  text-underline-offset: 3px;
}

/* filters.css */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(0, 5fr);
  gap: 10px;
  align-items: end;
  padding: 12px;
  background: rgba(246, 248, 251, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(14px);
  scroll-margin-top: 12px;
}

.search-field {
  min-width: 0;
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(132px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.filter-panel[hidden] {
  display: none;
}

.filter-chips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding-top: 2px;
}

.filter-chips[hidden] {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 32px;
  padding: 5px 10px;
  color: var(--primary-dark);
  background: #eaf2f7;
  border: 1px solid #c8dce9;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.filter-chip span {
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-chip::after {
  width: 14px;
  height: 14px;
  content: "";
  flex: 0 0 auto;
  background:
    linear-gradient(#fff, #fff) center / 8px 2px no-repeat,
    linear-gradient(#fff, #fff) center / 2px 8px no-repeat,
    var(--primary-dark);
  border-radius: 999px;
  transform: rotate(45deg);
}

.filter-chip:hover {
  background: #dbeef8;
}

.toolbar label,
.combo-field {
  display: grid;
  gap: 5px;
}

.toolbar span,
.combo-field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.toolbar input,
.filter-toggle,
.reset-button {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.toolbar input:focus,
.filter-toggle:focus-visible,
.reset-button:focus-visible,
.filter-chip:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(37, 95, 133, 0.25);
  outline-offset: 2px;
}

.filter-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  color: var(--primary-dark);
  font-weight: 850;
}

.filter-toggle span {
  color: inherit;
  font-size: 14px;
  font-weight: inherit;
}

.filter-toggle::after {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.filter-toggle[aria-expanded="true"]::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.filter-toggle strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  color: #fff;
  background: var(--teal);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.filter-toggle[hidden],
.filter-toggle strong[hidden] {
  display: none;
}

.combo-field {
  min-width: 0;
}

.combo-control {
  position: relative;
  min-width: 0;
}

.combo-control input {
  padding-right: 72px;
}

.combo-control input::-webkit-search-cancel-button {
  appearance: none;
}

.combo-button,
.combo-clear {
  position: absolute;
  top: 3px;
  display: grid;
  place-items: center;
  height: calc(100% - 6px);
  color: var(--primary-dark);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.combo-button {
  right: 3px;
  width: 34px;
}

.combo-clear {
  right: 38px;
  width: 30px;
  color: var(--muted);
}

.combo-clear[hidden] {
  display: none;
}

.combo-clear::before,
.combo-clear::after {
  position: absolute;
  width: 12px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  content: "";
}

.combo-clear::before {
  transform: rotate(45deg);
}

.combo-clear::after {
  transform: rotate(-45deg);
}

.combo-clear:hover,
.combo-clear:focus-visible {
  color: var(--primary-dark);
  background: #eaf2f7;
}

.combo-button::before {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.combo-control.open .combo-button::before {
  transform: rotate(225deg) translate(-2px, -1px);
}

.combo-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  max-height: min(320px, 52vh);
  overflow-y: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 44px rgba(23, 32, 51, 0.18);
}

.combo-option,
.combo-empty {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.combo-option {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.combo-option:hover,
.combo-option.active {
  color: var(--primary-dark);
  background: #eaf2f7;
}

.combo-option[aria-selected="true"] {
  color: var(--primary-dark);
  background: #dbeef8;
  box-shadow: inset 3px 0 0 #1f6388;
}

.combo-option[aria-selected="true"].active,
.combo-option[aria-selected="true"]:hover {
  color: var(--primary-dark);
  background: #cfe6f3;
}

.combo-empty {
  color: var(--muted);
}

/* tabs.css */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow-x: visible;
  padding: 16px 2px 12px;
  scrollbar-width: thin;
  min-height: 112px;
}

.tabs-loading {
  display: block;
  width: 100%;
  height: 84px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent) -180px 0 / 180px 100% no-repeat,
    repeating-linear-gradient(90deg, #e5ebf1 0 94px, transparent 94px 104px);
  border-radius: 8px;
  animation: loading-sheen 1.1s linear infinite;
}

.tabs:not(.is-loading) {
  min-height: 0;
}

.tab-group-label {
  align-self: center;
  flex: 0 0 auto;
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
}

.tab-button,
.ghost-button,
.buy-link,
.compare-button,
.reset-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.tab-button {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: var(--primary-dark);
  background: #fff;
  font-weight: 750;
}

.tab-button.active {
  color: #fff;
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 4px 0 18px;
}

.summary-card {
  padding: 16px;
}

.summary-card strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
}

.top-picks {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  padding-bottom: 4px;
  margin-bottom: 20px;
  min-height: 132px;
}

.quick-picks-section {
  margin-bottom: 4px;
}

.section-intro {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  margin: 4px 0 14px;
}

.section-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.section-intro .eyebrow {
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 12px;
}

.pick-card-skeleton {
  flex: 0 0 clamp(280px, 24vw, 360px);
  min-height: 128px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent) -180px 0 / 180px 100% no-repeat,
    #e5ebf1;
  border: 1px solid var(--line);
  border-radius: 8px;
  animation: loading-sheen 1.1s linear infinite;
}

@keyframes loading-sheen {
  to {
    background-position: calc(100% + 180px) 0, 0 0;
  }
}

.pick-card {
  flex: 0 0 clamp(280px, 24vw, 360px);
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding: 12px;
  height: 128px;
  min-height: 128px;
  overflow: hidden;
  color: inherit;
  text-align: left;
  appearance: none;
  scroll-snap-align: start;
  cursor: pointer;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pick-card > div {
  min-width: 0;
  overflow: hidden;
}

.pick-card h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pick-card:hover,
.pick-card:focus-visible {
  border-color: rgba(37, 95, 133, 0.55);
  box-shadow: 0 18px 45px rgba(18, 59, 90, 0.16);
  transform: translateY(-1px);
}

.pick-mark {
  display: grid;
  align-self: center;
  place-items: center;
  width: 74px;
  height: 74px;
  min-width: 0;
  padding: 8px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), transparent 58%),
    var(--primary-dark);
  border-radius: 18px 6px 18px 6px;
}

.pick-mark strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.1;
  text-overflow: ellipsis;
}

.pick-mark small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
}

.pick-card .fallback-art {
  align-self: center;
  width: 74px;
  height: 74px;
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  .tabs-loading,
  .pick-card-skeleton {
    animation: none;
  }
}

.pick-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.pick-card p:last-child {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.result-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 0 0 14px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.07);
}

.result-status {
  min-width: 0;
}

.result-status .field-label {
  margin: 0;
}

.result-status strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
}

.result-status small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.result-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.result-actions [hidden] {
  display: none;
}

/* cards.css */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  align-items: start;
  gap: 14px;
  scroll-margin-top: 78px;
}

.lazy-sentinel {
  width: 100%;
  height: 1px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  scroll-margin-top: 96px;
}

.product-card.is-targeted {
  animation: target-shake 720ms ease both;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.2), var(--shadow);
}

.image-wrap {
  --product-image-max-height: 180px;

  position: relative;
  display: grid;
  place-items: center;
  height: 212px;
  overflow: hidden;
  padding: 16px;
  background: linear-gradient(135deg, #f2f6f9, #ffffff);
  border-bottom: 1px solid var(--line);
}

.image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: var(--product-image-max-height);
  object-fit: contain;
}

.image-wrap img:not([src]) {
  visibility: hidden;
}

.fallback-art {
  display: none;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--primary-dark);
  text-align: center;
  background: #e9f1f5;
  border: 1px dashed #9bb2c1;
  border-radius: 8px;
}

.fallback-art strong {
  display: block;
  font-size: 18px;
}

.badge-row {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge.value {
  background: var(--teal);
}

.badge.premium {
  background: var(--amber);
}

.badge.risk {
  background: var(--rose);
}

.card-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.model {
  color: var(--primary-dark);
  font-weight: 800;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.decision-strip {
  align-items: stretch;
}

.price-row > div:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.price-row strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.price-row small {
  display: block;
  overflow-wrap: anywhere;
}

.price-insight {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  contain: layout;
  overflow-wrap: anywhere;
}

.channel-risk {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-wrap: anywhere;
}

.channel-risk strong {
  display: block;
  color: var(--primary-dark);
  font-size: 16px;
}

.channel-risk small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.channel-risk--global {
  border-color: rgba(178, 58, 72, 0.32);
  background: #fff7f8;
}

.price-insight strong {
  color: var(--primary-dark);
  font-size: 18px;
}

.price-insight small,
.price-insight a {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.price-insight a {
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: none;
}

.price-insight--buy {
  border-color: rgba(15, 118, 110, 0.5);
  background: #ecfdf5;
}

.price-insight--near {
  border-color: rgba(37, 95, 133, 0.35);
  background: #eff6ff;
}

.price-insight--watch {
  border-color: rgba(180, 83, 9, 0.35);
  background: #fffbeb;
}

.price-insight--high {
  border-color: rgba(190, 18, 60, 0.3);
  background: #fff1f2;
}

.issue-research {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid;
  border-left-width: 5px;
  border-radius: 8px;
  overflow-wrap: anywhere;
}

.issue-research--warning {
  color: #671827;
  background: #fff1f2;
  border-color: #be123c;
}

.issue-research--clear {
  color: #14532d;
  background: #f0fdf4;
  border-color: #15803d;
}

.issue-research--clear summary {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 48px;
  cursor: pointer;
  list-style: none;
}

.issue-research--clear summary::-webkit-details-marker {
  display: none;
}

.issue-research--clear summary > span:nth-child(2) {
  display: grid;
}

.issue-research--clear summary b {
  font-size: 12px;
}

.issue-research--clear summary strong {
  font-size: 14px;
}

.issue-research--clear summary small {
  white-space: nowrap;
  font-size: 11px;
}

.issue-research--clear summary:focus-visible {
  outline: 3px solid rgba(21, 128, 61, 0.25);
  outline-offset: 3px;
}

.issue-research-details {
  display: grid;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid rgba(21, 128, 61, 0.25);
}

.issue-research-heading {
  display: flex;
  gap: 9px;
  align-items: center;
}

.issue-research-heading strong,
.issue-research-item strong {
  display: block;
}

.issue-research-icon {
  display: grid;
  flex: 0 0 28px;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  border-radius: 50%;
  font-weight: 900;
}

.issue-research--warning .issue-research-icon {
  background: #be123c;
}

.issue-research--clear .issue-research-icon {
  background: #15803d;
}

.issue-research p {
  margin: 0;
  font-size: 13px;
}

.issue-research-item {
  display: grid;
  gap: 3px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid currentColor;
  border-radius: 7px;
}

.issue-report-count {
  width: fit-content;
  padding: 2px 7px;
  color: #fff;
  background: #9f1239;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.issue-research-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12px;
}

.issue-source-links {
  display: flex;
  flex: 1 1 260px;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-width: 0;
}

.issue-source-links a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 0;
  color: currentColor;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.issue-source-links a:focus-visible {
  outline: 3px solid rgba(37, 95, 133, 0.3);
  outline-offset: 2px;
}

.score {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: var(--primary-dark);
  border-radius: 50%;
  font-weight: 850;
}

.spec-list,
.pros-cons {
  display: grid;
  gap: 8px;
}

.spec-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spec-list--key {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.spec-item {
  padding: 8px;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.spec-item b {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.spec-item span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  word-break: break-word;
}

.description,
.recommendation,
.fineprint {
  color: var(--muted);
  font-size: 14px;
}

.card-details {
  min-width: 0;
}

.card-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 8px 10px;
  color: var(--primary-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

.card-details summary::-webkit-details-marker {
  display: none;
}

.card-details summary:focus-visible {
  outline: 3px solid rgba(37, 95, 133, 0.25);
  outline-offset: 2px;
}

.card-details summary::after {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.card-details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.card-details-body {
  display: grid;
  gap: 12px;
  padding-top: 12px;
}

.recommendation {
  padding-left: 10px;
  color: var(--ink);
  border-left: 3px solid var(--teal);
}

.pros-cons {
  grid-template-columns: 1fr 1fr;
}

.pros-cons ul {
  margin: 5px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.pros-cons li + li {
  margin-top: 4px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 4px 8px;
  color: #334155;
  background: #edf2f7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding: 0 14px 14px;
}

.empty-state--search {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.empty-state--search strong {
  color: var(--ink);
  font-size: 18px;
}

.empty-state--search p {
  margin: 0;
}

.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 4px;
}

.buy-link,
.compare-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  text-decoration: none;
  font-weight: 800;
}

.buy-link {
  color: #fff;
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.compare-button,
.ghost-button,
.reset-button {
  color: var(--primary-dark);
  background: #fff;
}

.reset-button {
  min-width: 96px;
  font-weight: 800;
  white-space: nowrap;
}

.compare-button.active {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.buy-link:hover,
.compare-button:hover,
.ghost-button:hover,
.tab-button:hover,
.reset-button:hover {
  transform: translateY(-1px);
}

.ghost-button:disabled {
  color: #94a3b8;
  cursor: not-allowed;
  background: #f8fafc;
  transform: none;
}

/* comparison.css */
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.compare-panel {
  margin-top: 22px;
  padding: 16px;
  scroll-margin-top: 78px;
}

.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.compare-table th {
  width: 140px;
  color: var(--muted);
  font-size: 12px;
}

.compare-table thead th {
  color: var(--primary-dark);
  background: #edf4f7;
  font-size: 13px;
}

.compare-tray {
  position: fixed;
  right: 50%;
  bottom: 18px;
  z-index: 10;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px 10px 16px;
  color: #fff;
  background: rgba(18, 59, 90, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: 0 18px 45px rgba(18, 59, 90, 0.28);
  transform: translateX(50%);
  backdrop-filter: blur(14px);
}

.compare-tray[hidden] {
  display: none;
}

.compare-tray a,
.compare-tray button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  color: var(--primary-dark);
  text-decoration: none;
  background: #fff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.compare-tray button {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.compare-remove-button {
  min-height: 34px;
  padding: 6px 10px;
  color: var(--rose);
  background: #fff7f8;
  border: 1px solid rgba(178, 58, 72, 0.3);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

.compare-remove-button:hover,
.compare-remove-button:focus-visible {
  color: #fff;
  background: var(--rose);
  border-color: var(--rose);
}

.empty-state {
  padding: 22px;
  color: var(--muted);
  text-align: center;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

/* navigation.css */
.mobile-dock {
  display: none;
}

.mobile-dock[hidden],
.page-jump[hidden] {
  display: none;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 50;
  padding: 10px 12px;
  color: #fff;
  text-decoration: none;
  background: var(--primary-dark);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateY(-72px);
  transition: transform 160ms ease;
}

.skip-link:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.28);
  outline-offset: 2px;
  transform: translateY(0);
}

@keyframes target-shake {
  0%,
  100% {
    transform: translateX(0);
  }

  15%,
  45%,
  75% {
    transform: translateX(-7px);
  }

  30%,
  60% {
    transform: translateX(7px);
  }
}

.page-jump {
  position: fixed;
  right: max(14px, calc((100vw - 1480px) / 2 + 14px));
  bottom: 22px;
  z-index: 7;
  display: grid;
  gap: 8px;
}

.page-jump-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.page-jump-button::before {
  width: 10px;
  height: 10px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  content: "";
}

.page-jump-up::before {
  transform: translateY(3px) rotate(45deg);
}

.page-jump-down::before {
  transform: translateY(-3px) rotate(225deg);
}

.page-jump-button:hover {
  color: #fff;
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* editorial.css */
.editorial-panel {
  margin: 24px 0;
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.editorial-heading,
.editorial-section-heading,
.editorial-product-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.editorial-heading > p,
.editorial-section-heading > p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.editorial-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.editorial-method-grid article {
  position: relative;
  min-width: 0;
  padding: 24px;
  background: var(--surface);
}

.editorial-method-grid article > span,
.editorial-criteria article > span {
  display: block;
  margin-bottom: 22px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.editorial-method-grid h3,
.editorial-criteria h3 {
  margin: 0;
  font-size: 18px;
}

.editorial-method-grid p,
.editorial-criteria p {
  margin: 8px 0 0;
  color: var(--muted);
}

.editorial-byline {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px 20px;
  color: var(--primary-dark);
  background: #eaf2f7;
  border-left: 4px solid var(--primary);
  border-radius: 6px;
}

.editorial-byline span {
  color: #466176;
  font-size: 14px;
}

.category-directory {
  margin-top: 0;
}

.editorial-panel--method {
  scroll-margin-top: 92px;
}

.homepage-evidence ul {
  list-style: none;
}

.homepage-evidence li {
  display: grid;
  gap: 2px;
}

.homepage-evidence small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.category-guide-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.category-guide-group {
  min-width: 0;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.category-guide-group h3 {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.category-guide-group ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-guide-group a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  padding: 8px 0;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.category-guide-group small {
  flex: 0 0 auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.editorial-page {
  overflow-x: hidden;
}

.editorial-page .skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
  background: var(--primary-dark);
  border-radius: 6px;
  transform: translateY(-180%);
}

.editorial-page .skip-link:focus {
  transform: translateY(0);
}

.editorial-shell {
  width: min(1120px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.editorial-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 clamp(44px, 7vw, 82px);
  background:
    linear-gradient(115deg, rgba(18, 59, 90, 0.96), rgba(37, 95, 133, 0.9)),
    repeating-linear-gradient(135deg, transparent 0 32px, rgba(255, 255, 255, 0.05) 32px 33px);
  color: #fff;
}

.editorial-hero::after {
  position: absolute;
  right: -120px;
  bottom: -210px;
  width: 470px;
  height: 470px;
  content: "";
  border: 72px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.editorial-hero .editorial-shell {
  position: relative;
  z-index: 1;
}

.editorial-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 46px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.editorial-breadcrumb a {
  text-underline-offset: 3px;
}

.editorial-kicker {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.editorial-hero .editorial-kicker {
  color: #bde9df;
}

.editorial-ai-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 14px;
  padding: 5px 11px;
  color: var(--primary-dark);
  background: #bde9df;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.editorial-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.editorial-lead {
  max-width: 860px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.75;
}

.editorial-ai-disclosure {
  max-width: 860px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.editorial-ai-disclosure a {
  color: #fff;
  font-weight: 800;
  text-underline-offset: 3px;
}

.editorial-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.editorial-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.editorial-page-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 11px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

.editorial-primary-action,
.editorial-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 6px;
}

.editorial-primary-action {
  margin-top: 28px;
  color: var(--primary-dark);
  background: #fff;
}

.editorial-primary-action::after,
.editorial-actions a::after {
  margin-left: 9px;
  content: "→";
}

.editorial-page main {
  margin-top: 0;
  margin-bottom: 0;
}

.editorial-section {
  padding: clamp(44px, 7vw, 78px) 0;
  border-bottom: 1px solid var(--line);
}

.editorial-section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.editorial-product-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.editorial-product {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.06);
  scroll-margin-top: 24px;
}

.editorial-product-rank {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 28px;
  color: #fff;
  background: var(--primary-dark);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.editorial-product-body {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
}

.editorial-product-heading {
  align-items: flex-start;
}

.editorial-product-heading h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(21px, 3vw, 29px);
  line-height: 1.2;
}

.editorial-price {
  flex: 0 0 auto;
  min-width: 156px;
  text-align: right;
}

.editorial-price span,
.editorial-price small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.editorial-price strong {
  display: block;
  color: var(--primary-dark);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.editorial-verdict {
  margin: 20px 0 0;
  padding: 16px 18px;
  color: #24435a;
  background: #edf4f7;
  border-radius: 6px;
}

.editorial-verdict strong,
.editorial-research-notes strong {
  display: block;
  margin-bottom: 4px;
  color: var(--primary-dark);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.editorial-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 18px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.editorial-facts div {
  min-width: 0;
  padding: 12px 14px;
  background: #fff;
}

.editorial-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.editorial-facts dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 720;
}

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

.editorial-evaluation > div {
  min-width: 0;
  padding-top: 14px;
  border-top: 3px solid var(--line);
}

.editorial-evaluation > div:first-child {
  border-color: var(--teal);
}

.editorial-evaluation > div:nth-child(2) {
  border-color: var(--amber);
}

.editorial-evaluation > div:nth-child(3) {
  border-color: var(--primary);
}

.editorial-evaluation h4 {
  margin: 0;
  font-size: 14px;
}

.editorial-evaluation ul,
.editorial-evidence ul {
  display: grid;
  gap: 6px;
  margin: 9px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}

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

.editorial-research-notes p {
  min-width: 0;
  margin: 0;
  padding: 14px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
}

.editorial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.editorial-actions a {
  color: #fff;
  background: var(--primary);
}

.editorial-actions a.secondary {
  color: var(--primary-dark);
  background: #fff;
  border: 1px solid var(--line);
}

.editorial-criteria {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.editorial-criteria article {
  min-width: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.editorial-faq-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.editorial-faq details,
.editorial-evidence {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.editorial-faq summary,
.editorial-evidence summary {
  padding: 18px 20px;
  color: var(--primary-dark);
  cursor: pointer;
  font-weight: 800;
}

.editorial-faq details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.editorial-method {
  border-bottom: 0;
}

.editorial-related-guides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.editorial-related-guides a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 11px 14px;
  color: var(--primary-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 750;
}

.editorial-method-copy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.editorial-method-copy p {
  margin: 0;
  padding: 20px;
  background: #eef3f6;
  border-radius: 7px;
}

.editorial-method-copy strong {
  display: block;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.editorial-evidence {
  margin-top: 16px;
}

.editorial-evidence ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 38px 20px;
}

.editorial-evidence a {
  overflow-wrap: anywhere;
  color: var(--primary-dark);
  text-underline-offset: 3px;
}

.editorial-footer {
  padding: 28px 0 38px;
  color: var(--muted);
  background: #e9eef2;
}

.editorial-footer .editorial-shell {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.editorial-footer a {
  color: var(--primary-dark);
  font-weight: 750;
  text-underline-offset: 3px;
}

.editorial-page a:focus-visible,
.editorial-page summary:focus-visible,
.editorial-panel a:focus-visible {
  outline: 3px solid #f2b84b;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .category-guide-groups,
  .editorial-method-copy,
  .editorial-related-guides {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editorial-product-heading {
    display: grid;
  }

  .editorial-price {
    text-align: left;
  }

  .editorial-evaluation {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .editorial-heading,
  .editorial-section-heading {
    display: grid;
  }

  .editorial-method-grid,
  .editorial-criteria,
  .editorial-method-copy,
  .editorial-related-guides {
    grid-template-columns: 1fr;
  }

  .editorial-byline {
    grid-template-columns: 1fr;
  }

  .editorial-product {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .editorial-product-rank {
    padding-top: 24px;
    font-size: 14px;
  }

  .editorial-facts,
  .editorial-research-notes {
    grid-template-columns: 1fr;
  }

  .editorial-evidence ul {
    grid-template-columns: 1fr;
  }

  .editorial-evidence a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
  }
}

@media (max-width: 520px) {
  .editorial-panel {
    padding: 18px;
  }

  .category-guide-groups {
    grid-template-columns: 1fr;
  }

  .editorial-shell {
    width: min(100% - 20px, 1120px);
  }

  .editorial-breadcrumb {
    margin-bottom: 34px;
  }

  .editorial-product {
    grid-template-columns: 1fr;
  }

  .editorial-product-rank {
    justify-content: flex-start;
    padding: 10px 18px;
  }

  .editorial-actions {
    display: grid;
  }

  .editorial-actions a,
  .editorial-primary-action {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-page {
    scroll-behavior: auto;
  }
}

/* responsive.css */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .tab-button,
  .pick-card,
  .ghost-button,
  .buy-link,
  .compare-button,
  .reset-button,
  .filter-chip,
  .compare-remove-button,
  .card-details summary,
  .skip-link,
  .mobile-dock,
  .page-jump,
  .page-jump-button {
    transition: none;
  }

  .product-card.is-targeted {
    animation: none;
  }
}

@media (max-width: 1080px) {
  .topbar-inner {
    grid-template-columns: 1fr;
  }

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

  .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-panel .reset-button {
    grid-column: 1 / -1;
  }

  .price-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .price-insight {
    grid-column: 1 / -1;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rate-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 14px;
    align-items: center;
  }

  .rate-card strong {
    grid-row: span 2;
  }

  .rate-card a {
    margin-top: 4px;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 72px;
  }

  body {
    padding-bottom: calc(108px + env(safe-area-inset-bottom));
  }

  main,
  footer {
    width: min(100% - 20px, 1480px);
  }

  .topbar {
    padding: 24px 0 18px;
  }

  .topbar-inner {
    width: min(100% - 28px, 1480px);
  }

  h1 {
    font-size: 31px;
  }

  .subhead {
    margin-top: 8px;
    font-size: 15px;
  }

  .ai-disclosure {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 7px 10px;
    margin-top: 12px;
    font-size: 12px;
  }

  .ai-disclosure a {
    grid-column: auto;
  }

  .rate-card {
    gap: 2px 12px;
    padding: 13px 14px;
  }

  .rate-card strong {
    font-size: 18px;
  }

  .rate-card small {
    font-size: 12px;
  }

  .toolbar {
    position: static;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px;
  }

  .search-field {
    grid-column: 1;
  }

  .filter-toggle {
    grid-column: 2;
    display: inline-flex;
    min-width: 92px;
    white-space: nowrap;
  }

  .filter-panel {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .toolbar:not(.filters-open) .filter-panel {
    display: none;
  }

  .filter-panel .reset-button {
    grid-column: auto;
  }

  .toolbar input,
  .filter-toggle,
  .reset-button,
  .tab-button,
  .buy-link,
  .compare-button,
  .ghost-button {
    min-height: 44px;
  }

  .tabs {
    position: sticky;
    top: 0;
    z-index: 4;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -10px;
    padding: 10px;
    background: rgba(246, 248, 251, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    scroll-snap-type: x proximity;
    min-height: 65px;
  }

  .tabs-loading {
    height: 44px;
  }

  .tab-button {
    scroll-snap-align: start;
  }

  .product-grid,
  .pros-cons,
  .spec-list,
  .card-actions {
    grid-template-columns: 1fr;
  }

  .issue-research-meta,
  .issue-source-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .issue-source-links a {
    min-height: 44px;
    padding: 10px 0;
  }

  .price-insight a,
  .homepage-evidence a,
  .editorial-evidence a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
  }

  .issue-research--clear summary {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .issue-research--clear summary small {
    grid-column: 2;
  }

  .summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin: 8px 0 14px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .summary-card {
    min-width: 0;
    padding: 9px 6px;
    text-align: center;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .summary-card strong {
    margin-top: 1px;
    font-size: 18px;
  }

  .summary-card span {
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-grid {
    gap: 12px;
  }

  .result-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .result-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  body.show-mobile-dock .result-toolbar {
    padding-right: 64px;
  }

  .top-picks {
    margin-right: -10px;
    margin-left: -10px;
    padding: 0 10px 6px;
  }

  .section-intro {
    display: grid;
    gap: 4px;
    margin-top: 2px;
  }

  .section-intro > p {
    font-size: 12px;
  }

  .ad-placement {
    min-height: 112px;
    margin: 18px 0;
    padding: 30px 10px 10px;
  }

  .pick-card {
    flex-basis: min(86vw, 340px);
  }

  .image-wrap {
    --product-image-max-height: 148px;

    height: 180px;
  }

  .mobile-dock {
    position: fixed;
    right: 64px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 88px;
    padding: 8px;
    opacity: 0;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    transform: translateY(18px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .mobile-dock[hidden],
  .page-jump[hidden] {
    display: none;
  }

  body.show-mobile-dock .mobile-dock {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-dock a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px;
    color: var(--primary-dark);
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 850;
  }

  .mobile-dock a.active {
    color: #fff;
    background: var(--teal);
    border-color: var(--teal);
  }

  .mobile-dock strong {
    margin-left: 4px;
  }

  .page-jump {
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 9;
    grid-template-columns: 44px;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .page-jump-button {
    width: 44px;
    height: 44px;
  }

  body.show-mobile-dock .page-jump {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .product-grid,
  .compare-panel {
    scroll-margin-top: 64px;
    scroll-margin-bottom: 120px;
  }

  .product-card {
    scroll-margin-bottom: 120px;
  }

  .compare-table {
    min-width: 0;
    table-layout: fixed;
  }

  .compare-table th {
    width: 112px;
  }

  .compare-table th,
  .compare-table td {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .compare-tray {
    display: none;
  }
}
