/* ---------- Catalog ---------- */
.catalog-shell { scroll-margin-top: 90px; }

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.search-box { position: relative; flex: 1 1 280px; max-width: 420px; }
.search-box svg {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  color: var(--muted);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  font-family: inherit;
  font-size: 0.92rem;
  padding: 12px 14px 12px 40px;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}
.search-box input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 99, 246, 0.14);
}

.sort-box { display: flex; align-items: center; gap: 10px; font-size: 0.84rem; color: var(--muted); }
.sort-box select {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  padding: 11px 38px 11px 16px;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6675' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 15px;
  cursor: pointer;
}
.sort-box select:focus { outline: none; border-color: var(--blue); }

.catalog-body {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.filters {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
  position: sticky;
  top: 92px;
}
.filter-group + .filter-group { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.filter-head h4 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #47515f;
  font-weight: 700;
}
.filter-head button {
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.pill-group { display: flex; flex-wrap: wrap; gap: 7px; }
.pill {
  border: 1px solid #d8dee8;
  background: #fff;
  color: #3b4554;
  font-family: inherit;
  font-size: 0.79rem;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pill:hover { border-color: #b7c1d0; }
.pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.brand-list { display: grid; gap: 2px; }
.brand-list label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  padding: 6px 0;
  cursor: pointer;
  color: #3b4554;
}
.brand-list input {
  appearance: none;
  width: 16px; height: 16px;
  border: 1px solid #c3ccda;
  border-radius: 4px;
  flex: none;
  display: grid;
  place-content: center;
  cursor: pointer;
  background: #fff;
  margin: 0;
}
.brand-list input:checked { background: var(--blue); border-color: var(--blue); }
.brand-list input:checked::after {
  content: "";
  width: 9px; height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(0, -1px);
}
.brand-list .count { margin-left: auto; font-size: 0.74rem; color: #94a0b0; }

.price-filter output {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.price-filter input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
  cursor: pointer;
}
.price-scale { display: flex; justify-content: space-between; font-size: 0.72rem; color: #94a0b0; margin-top: 2px; }

.catalog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 0.8rem;
  color: var(--muted);
}
.catalog-meta strong { color: var(--ink); }
.catalog-meta a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

.product-grid-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}

.p-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d5dbe6; }

.p-media {
  position: relative;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.p-media img { width: 100%; height: 100%; object-fit: cover; }
.p-brand {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(11, 14, 19, 0.06);
  backdrop-filter: blur(6px);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--ink);
}
.p-flag {
  position: absolute;
  top: 12px; right: 12px;
  background: #0f8a4d;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
}
.p-body { padding: 16px 17px 17px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.p-name {
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.p-note { font-size: 0.78rem; color: var(--muted); line-height: 1.45; }
.p-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.p-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--soft);
  color: #4b5565;
  border: 1px solid #e7ebf1;
}
.p-tag.type-wired { background: #eef4ff; color: #1f4fae; border-color: #dbe6ff; }
.p-tag.type-wireless { background: #ecfbf2; color: #157347; border-color: #d5f2e1; }

.p-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 17px 12px;
}
.p-price { line-height: 1.1; }
.p-price strong { font-size: 1.06rem; letter-spacing: -0.03em; }
.p-price del { display: block; font-size: 0.72rem; color: #98a2b3; }
.p-add {
  margin-left: auto;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid #d5dbe4;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.p-add:hover { border-color: var(--ink); }
.p-add.added { background: #0f8a4d; border-color: #0f8a4d; color: #fff; }
.p-specs {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  width: auto;
  margin: 0 17px;
  padding: 10px 0 14px;
  border: 0;
  border-top: 1px solid #eef1f5;
  background: none;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  text-align: left;
}
.p-specs span {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}
.p-specs:hover span, .p-specs.is-open span { text-decoration-color: currentColor; }
.p-specs em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-style: normal;
  font-weight: 500;
  font-size: 0.7rem;
  color: #98a2b3;
  white-space: nowrap;
}
.p-specs .chev {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.18s ease;
}
.p-specs.is-open .chev { transform: translateY(1px) rotate(225deg); }

.p-spec-panel {
  margin: 0 17px 16px;
  padding: 12px 13px 13px;
  border: 1px solid #e7ebf1;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 0.76rem;
}
.sp-list { display: grid; gap: 1px; }
.sp-row {
  display: grid;
  gap: 2px;
  padding: 6px 0;
  border-top: 1px solid #edf1f6;
}
.sp-row:first-child { border-top: 0; padding-top: 0; }
.sp-k {
  color: #6b7686;
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sp-v { color: var(--ink); font-weight: 500; line-height: 1.45; overflow-wrap: break-word; }
.sp-note { color: #6b7686; line-height: 1.55; }
.sp-note + .sp-note { margin-top: 6px; }
.sp-note a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.sp-src {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #e7ebf1;
  font-size: 0.7rem;
  color: #98a2b3;
}
.sp-src a { color: #6b7686; text-decoration: underline; text-underline-offset: 2px; }

.catalog-empty {
  border: 1px dashed #cbd3e0;
  border-radius: var(--radius);
  padding: 52px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}
.catalog-empty strong { display: block; color: var(--ink); margin-bottom: 6px; font-size: 1rem; }

.catalog-disclaimer {
  margin-top: 28px;
  font-size: 0.76rem;
  color: #7b8595;
  line-height: 1.6;
  max-width: 92ch;
}
.catalog-disclaimer a { color: var(--blue); }

/* ---------- Calculator ---------- */
.calculator { background: var(--soft); }
.calc-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: start;
}

.calc-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 22px;
}
.calc-block { display: grid; gap: 10px; }
.calc-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #47515f;
}
.seg { display: flex; gap: 6px; background: var(--soft); padding: 5px; border-radius: 12px; }
.seg button {
  flex: 1;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #4b5565;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.seg button.active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(11, 14, 19, 0.09); }

.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button {
  width: 40px; height: 40px;
  border-radius: 11px;
  border: 1px solid #d8dee8;
  background: #fff;
  font-size: 1.15rem;
  font-family: inherit;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
}
.stepper button:hover { border-color: var(--ink); }
.stepper output { font-size: 1.15rem; font-weight: 700; min-width: 26px; text-align: center; }
.stepper small { color: var(--muted); font-size: 0.78rem; }

.calc-select {
  font-family: inherit;
  font-size: 0.88rem;
  padding: 11px 38px 11px 13px;
  border: 1px solid #d8dee8;
  border-radius: 11px;
  background: #fff;
  width: 100%;
  color: var(--ink);
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6675' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 15px;
}
.calc-select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 99, 246, 0.13); }

.check-grid { display: grid; gap: 9px; }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: #3b4554;
  cursor: pointer;
  padding: 10px 12px;
  border: 1px solid #e3e8f0;
  border-radius: 11px;
  background: #fff;
}
.check-row:hover { border-color: #c9d2e0; }
.check-row input {
  appearance: none;
  width: 17px; height: 17px;
  border: 1px solid #c3ccda;
  border-radius: 5px;
  flex: none;
  margin-top: 1px;
  background: #fff;
  display: grid;
  place-content: center;
  cursor: pointer;
}
.check-row input:checked { background: var(--blue); border-color: var(--blue); }
.check-row input:checked::after {
  content: "";
  width: 9px; height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(0, -1px);
}
.check-row span small { display: block; color: var(--muted); font-size: 0.76rem; }
.check-row:has(input:checked) { border-color: rgba(11, 99, 246, 0.45); background: #f7faff; }

/* Result card */
.calc-result {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px;
  position: sticky;
  top: 92px;
}
.calc-result h3 { font-size: 1.05rem; letter-spacing: -0.02em; color: #fff; }
.calc-range {
  margin: 16px 0 4px;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}
.calc-range small { font-size: 0.95rem; font-weight: 500; letter-spacing: 0; color: rgba(255, 255, 255, 0.55); }
.calc-sub { font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }
.calc-lines { margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.14); display: grid; gap: 9px; }
.calc-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.72);
}
.calc-line span:last-child { color: #fff; font-weight: 500; white-space: nowrap; }
.calc-line.total {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 11px;
  margin-top: 3px;
  font-size: 0.92rem;
  color: #fff;
}
.calc-line.total span:last-child { font-weight: 700; }
.calc-basket { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.calc-basket h4 {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}
.basket-empty { font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); line-height: 1.5; }
.basket-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}
.basket-item .b-name { flex: 1; }
.basket-item .b-price { font-weight: 600; color: #fff; white-space: nowrap; }
.basket-item button {
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 20px; height: 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.7rem;
  line-height: 1;
  flex: none;
}
.basket-item button:hover { background: rgba(255, 255, 255, 0.22); }
.calc-basket-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.65);
}
.calc-basket-total strong { color: #fff; }
.calc-grand {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.calc-grand span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }
.calc-grand strong { font-size: 1.22rem; letter-spacing: -0.03em; }
.calc-result .btn { margin-top: 20px; }
.calc-source {
  margin-top: 18px;
  font-size: 0.72rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.42);
}
.calc-source a { color: rgba(255, 255, 255, 0.72); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) and (min-width: 761px) {
  .nav { gap: 17px; }
  .nav > a { font-size: 0.84rem; }
  .nav .nav-cta { padding: 10px 16px; font-size: 0.86rem; }
}
@media (max-width: 1100px) {
  .product-grid-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .catalog-body { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filter-group { display: inline-block; vertical-align: top; margin-right: 28px; }
  .filter-group + .filter-group { border-top: 0; padding-top: 0; margin-top: 18px; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-result { position: static; }
}
@media (max-width: 640px) {
  .product-grid-catalog { grid-template-columns: 1fr; }
  .filter-group { display: block; margin-right: 0; }
  .filter-group + .filter-group { margin-top: 18px; }
  .catalog-toolbar { align-items: stretch; }
  .search-box { max-width: none; }
  .sort-box { justify-content: space-between; }
  .sort-box select { flex: 1; }
  .calc-form { padding: 20px; }
  .calc-result { padding: 24px; }
}

/* ---------- Live price state ---------- */
.catalog-live { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 5px 10px;
  border: 1px solid #f0e0b6;
  background: #fff8e9;
  color: #8a5a00;
}
.live-pill .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c99a1a;
  box-shadow: 0 0 0 3px rgba(201, 154, 26, 0.16);
  flex: none;
}
.live-pill.is-live { color: #0d6b3f; background: #ecfbf2; border-color: #c9e9d7; }
.live-pill.is-live .live-dot { background: #16b364; box-shadow: 0 0 0 3px rgba(22, 179, 100, 0.18); }
.refresh-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  color: #3b4554;
  cursor: pointer;
}
.refresh-btn:hover { border-color: var(--ink); }
.refresh-btn:disabled { opacity: 0.55; cursor: default; }

/* Real product photos sit on white, so contain them instead of cropping */
.p-media { background: #f6f8fb; }
.p-media img { object-fit: contain; padding: 10px; }
.p-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

/* ---------- Compare ---------- */
.compare-section { padding-top: 88px; }
.compare-picker {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.compare-select { display: grid; gap: 7px; flex: 1 1 240px; }
.compare-select span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.compare-select select {
  appearance: none;
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 12px 40px 12px 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 15px;
  cursor: pointer;
}
.compare-select select option { color: #0b0e13; background: #fff; }
.compare-select select:focus { outline: none; border-color: rgba(255, 255, 255, 0.55); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08); }
.compare-swap {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.compare-swap:hover { background: rgba(255, 255, 255, 0.16); }

.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-frame {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.compare-frame img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #000; }
.compare-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 14, 19, 0.74);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
}
.compare-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(11, 14, 19, 0.74);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.compare-toggle:hover { background: rgba(11, 14, 19, 0.95); }
.compare-frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 44px 16px 14px;
  background: linear-gradient(180deg, rgba(11, 14, 19, 0), rgba(11, 14, 19, 0.92));
}
.compare-meta { display: grid; gap: 2px; }
.compare-title { font-size: 1rem; letter-spacing: -0.02em; color: #fff; }
.compare-sub { font-size: 0.76rem; color: rgba(255, 255, 255, 0.66); }
.compare-source {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.compare-source:hover { color: #fff; }

.compare-table {
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  overflow: hidden;
}
.compare-row {
  display: grid;
  grid-template-columns: 170px 1fr 1fr;
  gap: 12px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.compare-row:first-child { border-top: 0; }
.compare-head { background: rgba(255, 255, 255, 0.05); color: #fff; }
.compare-head strong { font-size: 0.9rem; letter-spacing: -0.01em; }
.compare-key { color: rgba(255, 255, 255, 0.46); font-size: 0.78rem; }
.compare-fineprint {
  margin-top: 18px;
  font-size: 0.74rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
  max-width: 88ch;
}

@media (max-width: 820px) {
  .compare-grid { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 110px 1fr 1fr; font-size: 0.8rem; padding: 11px 12px; }
  .compare-head strong { font-size: 0.82rem; }
  .compare-frame img { aspect-ratio: 16 / 10; }
}
@media (max-width: 520px) {
  .compare-row { grid-template-columns: 1fr 1fr; row-gap: 3px; }
  .compare-row .compare-key { grid-column: 1 / -1; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; }
  .compare-frame figcaption { flex-direction: column; align-items: flex-start; gap: 4px; }
  .compare-select { flex-basis: 100%; }
  .compare-swap { align-self: center; }
}
