/* Prices, in the landing's system (newsletter/site/public/styles.css): the board as the ground, Geist in
   graphite ink, muted text at 66%, hairlines between rows. Controls are the landing's: the search is its
   glass pill with the button inside, a filter is a hairline pill that turns into the black ink pill once
   picked, links are ink with a hairline underline that turn into the black pill under the pointer.
   Emerald stays in focus rings and the caret. Photos sit on frost tiles; a product without one gets an
   empty plate of the board, never a stock or generated picture. Only the tokens in styles.css are used. */

.prices-page {
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2316191c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --chev-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23f2f2f0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  margin: 0 auto;
  max-width: 1168px;
  padding: clamp(56px, 6.5vw, 96px) 24px 120px;
}

.prices-page [hidden] {
  display: none !important;
}

/* the archive's statement: one line in ink */
.prices-page > h1 {
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.034em;
  line-height: 1;
  margin: 0 0 clamp(26px, 3vw, 36px);
  text-wrap: balance;
}

.prices-page h2 {
  font-size: clamp(22px, 2vw, 27px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 18px;
}

.prices-page section {
  margin-top: clamp(52px, 5.5vw, 80px);
}

.prices-page sup {
  font-size: 10px;
  margin-left: 1px;
}

/* ---- small links as the landing's: ink, a hairline underline, the black pill under the pointer ---- */
.prices-buy,
.prices-maker-link,
.prices-clear,
.prices-footer a,
.prices-links a,
.prices-unpriced summary,
.prices-source-notes a {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  border-radius: 999px;
  color: var(--ink);
  margin: -4px -10px;
  padding: 4px 10px;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 3.3px;
  transition: background-color 140ms ease, color 140ms ease, text-decoration-color 140ms ease;
}

@media (hover: hover) {
  .prices-buy:hover,
  .prices-maker-link:hover,
  .prices-clear:hover,
  .prices-footer a:hover,
  .prices-links a:hover,
  .prices-unpriced summary:hover,
  .prices-source-notes a:hover {
    background: var(--ink);
    color: var(--light);
    text-decoration-color: transparent;
  }
}

.prices-buy:focus-visible,
.prices-maker-link:focus-visible,
.prices-clear:focus-visible,
.prices-footer a:focus-visible,
.prices-links a:focus-visible,
.prices-unpriced summary:focus-visible {
  background: var(--ink);
  color: var(--light);
  outline: none;
  text-decoration-color: transparent;
}

/* a product's kind: the archive's quiet badge, a hairline pill */
.prices-tag {
  align-items: center;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--ink);
  display: inline-flex;
  flex: none;
  font-size: 12px;
  font-weight: 500;
  height: 22px;
  line-height: 1;
  padding: 0 9px;
  text-decoration: none;
  white-space: nowrap;
}

a.prices-tag {
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

a.prices-tag:hover,
a.prices-tag:focus-visible {
  background: var(--ink);
  box-shadow: none;
  color: var(--light);
  outline: none;
}

/* what a number is (list, quoted, paid, estimate): the quietest pill, beside the number it labels */
.prices-chip {
  align-items: center;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--hair);
  color: var(--ink-2);
  display: inline-flex;
  font-size: 11px;
  font-weight: 450;
  height: 18px;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0 7px;
  vertical-align: 0.12em;
  white-space: nowrap;
}

.prices-amount {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---- the search: the landing's glass pill; on a phone the Filters button sits inside it ---- */
.prices-filters {
  margin: 0 0 6px;
}

.prices-search {
  align-items: center;
  background: var(--glass-tint);
  border-radius: 28px;
  box-shadow: var(--glass-shadow);
  display: flex;
  height: 56px;
  max-width: 620px;
  padding: 0 7px 0 24px;
  transition: box-shadow 160ms ease;
}

.prices-search:has(input:focus-visible) {
  box-shadow: var(--glass-focus);
}

.prices-search input {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  caret-color: var(--emerald);
  color: var(--ink);
  flex: 1 1 0;
  font: 450 16.5px/1.2 var(--body);
  height: 100%;
  letter-spacing: -0.008em;
  margin: 0;
  min-width: 0;
  outline: 0;
  padding: 0 10px 0 0;
  width: 0;
}

.prices-search input::placeholder {
  color: rgb(22 25 28 / 62%);
  opacity: 1;
}

.prices-filters-toggle {
  align-items: center;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  box-shadow: var(--pill-shadow);
  color: var(--light);
  cursor: pointer;
  display: none;
  flex: none;
  font: 500 15px/1 var(--body);
  gap: 8px;
  height: 42px;
  padding: 0 18px;
}

.prices-filters-toggle:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--emerald);
  outline: none;
}

.prices-filters-count {
  align-items: center;
  background: var(--light);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  height: 20px;
  justify-content: center;
  min-width: 20px;
  padding: 0 6px;
}

/* ---- the filters: hairline pills; a picked one is the black pill, as on the landing ---- */
.prices-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.prices-pick {
  align-items: center;
  display: inline-flex;
  max-width: 100%;
  min-width: 0;
  position: relative;
}

.prices-pick select {
  -webkit-appearance: none;
  field-sizing: content; /* as wide as the picked option, not the longest one */
  appearance: none;
  background: transparent var(--chev) no-repeat right 15px center / 10px 6px;
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--ink);
  cursor: pointer;
  font: 400 14.5px/1 var(--body);
  height: 38px;
  max-width: min(100%, 16em);
  overflow: hidden;
  padding: 0 36px 0 16px;
  text-overflow: ellipsis;
  transition: box-shadow 140ms ease, background-color 140ms ease, color 140ms ease;
  white-space: nowrap;
}

.prices-pick-toggle,
.prices-pick-range {
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--rule);
  font-size: 14.5px;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  transition: box-shadow 140ms ease, background-color 140ms ease, color 140ms ease;
}

@media (hover: hover) {
  .prices-pick select:hover,
  .prices-pick-toggle:hover,
  .prices-pick-range:hover {
    box-shadow: inset 0 0 0 1px var(--ink);
  }
}

.prices-pick:not(:has(option[value=""]:checked)) select,
.prices-pick-toggle:has(input:checked),
.prices-pick-range:has(input:not(:placeholder-shown)) {
  background-color: var(--ink);
  box-shadow: var(--pill-shadow);
  color: var(--light);
}

.prices-pick:not(:has(option[value=""]:checked)) select {
  background-image: var(--chev-light);
}

.prices-pick select:focus-visible,
.prices-pick-toggle:has(input:focus-visible),
.prices-pick-range:has(input:focus-visible) {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
}

.prices-pick select option,
.prices-pick select optgroup {
  background: #fff;
  color: var(--ink);
}

.prices-pick-toggle {
  cursor: pointer;
  user-select: none;
}

.prices-pick-toggle input {
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

/* the price range: one pill, "US$ min to max" */
.prices-pick-range {
  color: var(--ink-2);
  padding: 0 14px 0 16px;
}

.prices-pick-range input {
  -moz-appearance: textfield;
  appearance: textfield;
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-variant-numeric: tabular-nums;
  margin: 0;
  outline: 0;
  field-sizing: content;
  min-width: 2.4em;
  padding: 0;
  width: 3.6em;
}

.prices-pick-range input::-webkit-inner-spin-button,
.prices-pick-range input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.prices-pick-range input::placeholder {
  color: var(--ink-2);
  opacity: 1;
}

.prices-pick-range:has(input:not(:placeholder-shown)) input {
  color: var(--light);
}

.prices-pick-range:has(input:not(:placeholder-shown)) input::placeholder {
  color: rgb(242 242 240 / 60%);
}

/* how many, clear, and the order: one quiet line closing the controls */
.prices-results {
  align-items: center;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 8px 26px;
  margin-top: 28px;
  padding-bottom: 14px;
}

.prices-results output {
  font-variant-numeric: tabular-nums;
}

.prices-clear {
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.prices-sort {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  margin-left: auto;
}

.prices-sort select {
  -webkit-appearance: none;
  appearance: none;
  field-sizing: content;
  background: transparent var(--chev) no-repeat right 0 center / 10px 6px;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 4px 18px 4px 0;
}

.prices-sort select:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
}

/* ---- the list: the archive's rows. The photo; the kind, the check date, the name and a few specs;
   the price, its stock and where to buy it, set right so prices line up down the page ---- */
.prices-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.prices-row {
  align-items: start;
  border-bottom: 1px solid var(--hair);
  column-gap: clamp(18px, 2.2vw, 28px);
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(190px, 260px);
  padding: 22px 0;
}

.prices-row-main,
.prices-row-offer {
  min-width: 0;
}

.prices-row :where(p) {
  margin: 0;
}

.prices-row-kicker {
  align-items: center;
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  gap: 6px 10px;
  line-height: 22px;
  min-height: 22px;
}

.prices-row-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-top: 6px;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.prices-row-title a {
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.prices-row-title a:hover {
  text-decoration-color: currentColor;
}

.prices-row-config {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.4;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.prices-row-specs {
  display: flex;
  flex-wrap: wrap;
  font-size: 13.5px;
  gap: 4px 18px;
  line-height: 1.45;
  margin-top: 10px;
}

.prices-row-specs > span {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.prices-spec-key {
  color: var(--ink-2);
}

.prices-row-offer {
  text-align: right;
}

.prices-row-price {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  padding-top: 26px;
}

.prices-row-price .prices-chip {
  font-weight: 450;
  letter-spacing: 0.01em;
  margin-left: 2px;
}

.prices-state {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 400;
}

.prices-row-meta {
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  font-size: 13px;
  gap: 2px;
  line-height: 1.45;
  margin-top: 4px;
}

.prices-row-meta span:empty {
  display: none;
}

.prices-row-buy {
  font-size: 14px;
  line-height: 1.45;
  margin-top: 10px;
}

.prices-row-buy:empty {
  display: none;
}

/* the next rows of a long list: a hairline pill under it, the black pill on hover */
.prices-more {
  margin: 26px 0 0;
  text-align: center;
}

.prices-more button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--ink);
  cursor: pointer;
  font: 500 15px/1 var(--body);
  font-variant-numeric: tabular-nums;
  height: 42px;
  padding: 0 22px;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.prices-more button:hover,
.prices-more button:focus-visible {
  background: var(--ink);
  box-shadow: none;
  color: var(--light);
  outline: none;
}

.prices-empty {
  color: var(--ink-2);
  margin: 0;
  padding: 26px 0;
}

.prices-unpriced {
  margin-top: 30px;
}

.prices-unpriced summary {
  cursor: pointer;
  display: inline-block;
  font-size: 15px;
  list-style: none;
}

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

.prices-unpriced[open] summary {
  margin-bottom: 14px;
}

.prices-unpriced .prices-list {
  border-top: 1px solid var(--rule);
}

/* ---- photos: frost tiles, the photo multiplied in so a white studio background becomes the tile ---- */
.prices-thumb {
  align-items: center;
  aspect-ratio: 1;
  background: var(--frost);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgb(22 25 28 / 6%);
  display: flex;
  flex: none;
  isolation: isolate;
  justify-content: center;
  overflow: hidden;
  width: 72px;
}

.prices-thumb img {
  display: block;
  height: 100%;
  mix-blend-mode: multiply;
  object-fit: contain;
  padding: 6px;
  width: 100%;
}

/* no photo: an empty plate of the board with the product's kind on it */
.prices-thumb-empty {
  background-color: var(--plate);
  background-image: var(--board);
  background-position: var(--board-at);
  background-size: var(--pitch) var(--pitch);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.prices-thumb-empty > span {
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 500;
  hyphens: auto;
  line-height: 1.2;
  padding: 0 6px;
  text-align: center;
  text-wrap: balance;
}

/* ---- a product: the photo, then what it is and the lowest offer on a frost card ---- */
.prices-hero {
  align-items: start;
  display: grid;
  gap: clamp(28px, 4.5vw, 72px);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.prices-hero-text-only {
  grid-template-columns: minmax(0, 1fr);
  max-width: 820px;
}

.prices-hero-media {
  margin: 0;
}

.prices-thumb-hero {
  border-radius: 20px;
  width: 100%;
}

.prices-thumb-hero img {
  padding: clamp(18px, 3vw, 40px);
}

.prices-hero-media figcaption {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 12px;
}

.prices-hero-kicker {
  align-items: center;
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 6px 10px;
  line-height: 22px;
  margin: 0 0 18px;
}

.prices-hero h1 {
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 500;
  letter-spacing: -0.034em;
  line-height: 1.04;
  margin: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.prices-configuration {
  color: var(--ink-2);
  font-size: clamp(17px, 1.45vw, 20px);
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 12px 0 0;
  overflow-wrap: anywhere;
}

.prices-best {
  background: var(--frost);
  border-radius: 20px;
  box-shadow: var(--frost-shadow);
  margin-top: clamp(28px, 3vw, 40px);
  max-width: 480px;
  padding: 24px 26px 26px;
}

.prices-best :where(p) {
  margin: 0;
}

.prices-best-from {
  color: var(--ink-2);
  font-size: 14px;
  margin-bottom: 6px;
}

.prices-best-price .prices-amount {
  font-size: clamp(30px, 2.8vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.prices-best-price .prices-chip {
  margin-left: 4px;
  vertical-align: 0.45em;
}

.prices-best-facts {
  font-size: 15px;
  line-height: 1.5;
  margin-top: 12px;
}

.prices-best-seller {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.prices-cta {
  height: auto;
  line-height: 1.25;
  margin-top: 22px;
  max-width: 100%;
  min-height: 42px;
  padding: 11px 21px;
  text-align: left;
  white-space: normal;
  width: auto;
}

.prices-cta span {
  margin-left: 2px;
}

/* a reviewed product without a price: the status in the price's place and the maker's page as a
   hairline pill, never the black Buy button */
.prices-reference .prices-amount {
  font-size: clamp(24px, 2.2vw, 30px);
  letter-spacing: -0.024em;
}

.prices-maker-cta {
  align-items: center;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--ink);
  display: inline-flex;
  font: 500 15px/1.25 var(--body);
  margin-top: 22px;
  max-width: 100%;
  min-height: 42px;
  padding: 11px 21px;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.prices-maker-cta:hover,
.prices-maker-cta:focus-visible {
  background: var(--ink);
  box-shadow: none;
  color: var(--light);
  outline: none;
}

/* ---- tables: the offers, landed costs, history and parts. Sentence-case headers in muted type over
   one rule, hairlines between rows; on a phone each row is a card (below) ---- */
.prices-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.prices-table {
  border-collapse: collapse;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-align: left;
  width: 100%;
}

.prices-table th {
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 400;
  padding: 0 24px 12px 0;
  vertical-align: bottom;
  white-space: nowrap;
}

.prices-table td {
  border-bottom: 1px solid var(--hair);
  line-height: 1.45;
  min-width: 96px;
  padding: 16px 24px 16px 0;
  vertical-align: top;
}

.prices-table th:last-child,
.prices-table td:last-child {
  padding-right: 0;
}

.prices-table th button {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
}

.prices-table th button:hover {
  color: var(--ink);
}

.prices-table th button:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
}

.prices-table th[aria-sort="ascending"] button::after {
  content: " ↑";
}

.prices-table th[aria-sort="descending"] button::after {
  content: " ↓";
}

.prices-table small {
  color: var(--ink-2);
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

.prices-offers td:first-child {
  min-width: 180px;
}

.prices-component {
  display: block;
  margin-bottom: 4px;
  white-space: nowrap;
}

.prices-bom td:first-child {
  min-width: 280px;
}

.prices-build-part {
  align-items: flex-start;
  display: flex;
  gap: 14px;
}

.prices-build-part .prices-thumb {
  width: 48px;
}

.prices-build-part > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding-top: 2px;
}

.prices-build-name {
  overflow-wrap: anywhere;
}

.prices-build-part .prices-buy {
  align-self: flex-start;
  font-size: 13.5px;
}

.prices-status {
  color: var(--ink-2);
  font-size: 15px;
  margin: -8px 0 18px;
}

.prices-warning {
  border-left: 2px solid var(--ink);
  margin: 18px 0 0;
  padding-left: 16px;
}

/* ---- specifications: label over value, a hairline above each ---- */
.prices-specs {
  display: grid;
  gap: 0 28px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  margin: 0;
}

.prices-specs > div {
  border-top: 1px solid var(--hair);
  overflow-wrap: anywhere;
  padding: 14px 0 18px;
}

.prices-specs dt {
  color: var(--ink-2);
  font-size: 13px;
}

.prices-specs dd {
  font-size: 16px;
  line-height: 1.4;
  margin: 4px 0 0;
}

/* ---- the hub's builds: the landing's boxes, a hairline that firms up on hover ---- */
.prices-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.prices-cards a {
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px var(--hair);
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 22px 22px 20px;
  text-decoration: none;
  transition: box-shadow 160ms ease;
}

.prices-cards a:hover {
  box-shadow: inset 0 0 0 1px var(--rule);
}

.prices-cards a:focus-visible {
  border-radius: 20px;
}

.prices-card-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.prices-card-meta {
  color: var(--ink-2);
  font-size: 13px;
  margin-top: auto;
}

.prices-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---- alerts: the landing's signup. The choice as links (the picked one the black pill), then the
   glass pill with the email and the black button inside ---- */
.prices-signup {
  margin: 40px 0 0;
}

.prices-alert {
  max-width: 560px;
}

.prices-alert form {
  margin: 0;
}

.prices-alert-picks {
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0 0 18px;
  min-width: 0;
  padding: 0;
}

.prices-alert-pick {
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  margin: -4px -10px;
  padding: 4px 10px;
  position: relative;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3.3px;
  transition: background-color 140ms ease, color 140ms ease, text-decoration-color 140ms ease;
}

.prices-alert-pick input {
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.prices-alert-pick:has(input:checked) {
  background: var(--ink);
  color: var(--light);
  text-decoration-color: transparent;
}

.prices-alert-pick:has(input:focus-visible) {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
}

.prices-alert [role="status"] {
  color: var(--ink-2);
  font-size: 14px;
  margin: 12px 0 0;
}

.prices-alert [role="status"]:empty {
  display: none;
}

.prices-small {
  color: var(--ink-2);
  font-size: 13px;
  margin: 14px 0 0;
}

.prices-trap {
  left: -10000px;
  position: absolute !important;
}

.prices-live {
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--ink);
  cursor: pointer;
  font: 500 15px/1 var(--body);
  height: 42px;
  padding: 0 20px;
}

.prices-live:hover {
  background: var(--ink);
  box-shadow: none;
  color: var(--light);
}

.prices-live:disabled {
  cursor: default;
  opacity: 0.6;
}

[data-prices-live-status] {
  color: var(--ink-2);
  font-size: 14px;
}

/* ---- the reading pages (methodology, privacy): the archive's column ---- */
.prices-reading {
  max-width: 776px;
}

.prices-reading p {
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.prices-reading section h2 + p,
.prices-reading p + h2 {
  margin-top: 0;
}

.prices-reading p + h2 {
  margin-top: 40px;
}

.prices-method {
  margin: 0;
}

.prices-method dt .prices-chip {
  font-size: 12px;
  height: 22px;
  padding: 0 10px;
}

.prices-method dd {
  font-size: 17px;
  line-height: 1.6;
  margin: 8px 0 28px;
}

/* ---- the footer: the post's closing line ---- */
.prices-footer {
  border-top: 1px solid var(--hair);
  color: var(--ink-2);
  font-size: 14px;
  margin-top: clamp(64px, 7vw, 104px);
  padding-top: 20px;
}

.prices-footer p {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 0;
}

.prices-footer p + p {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 14px;
  max-width: 62em;
}

.prices-footer a {
  color: var(--ink-2);
}

.prices-source-notes {
  overflow-wrap: anywhere;
}

/* ---- tablets: the offer column narrows, the hero stacks ---- */
@media (max-width: 980px) {
  .prices-row {
    grid-template-columns: 64px minmax(0, 1fr) minmax(170px, 220px);
  }

  .prices-thumb:not(.prices-thumb-hero) {
    width: 64px;
  }

  .prices-build-part .prices-thumb {
    width: 48px;
  }

  .prices-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  }
}

/* ---- phones: the home's gutters; Filters folds into the search pill; rows and tables become cards ---- */
@media (max-width: 700px) {
  .prices-page {
    padding: 40px 20px 80px;
  }

  .prices-page > h1 {
    font-size: clamp(34px, 10.4vw, 46px);
  }

  .prices-search {
    height: 54px;
    max-width: none;
    padding: 0 6px 0 20px;
  }

  .prices-search input {
    font-size: 16px;
  }

  .prices-filters-toggle {
    display: inline-flex;
  }

  .prices-picks[data-collapsed] {
    display: none;
  }

  .prices-picks {
    margin-top: 14px;
  }

  .prices-pick select,
  .prices-pick-toggle,
  .prices-pick-range {
    font-size: 15px;
    height: 40px;
  }

  .prices-pick-range input {
    font-size: 16px;
  }

  .prices-results {
    margin-top: 22px;
  }

  .prices-row {
    column-gap: 14px;
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 20px 0;
    row-gap: 12px;
  }

  .prices-thumb:not(.prices-thumb-hero) {
    width: 56px;
  }

  .prices-thumb-empty > span {
    font-size: 9.5px;
    padding: 0 4px;
  }

  .prices-row-title {
    font-size: 17px;
  }

  .prices-row-config {
    font-size: 14px;
  }

  .prices-row-specs {
    font-size: 13px;
    gap: 2px 14px;
  }

  .prices-row-offer {
    grid-column: 2;
    text-align: left;
  }

  .prices-row-price {
    padding-top: 0;
  }

  .prices-hero {
    gap: 24px;
    grid-template-columns: minmax(0, 1fr);
  }

  .prices-hero-media {
    max-width: min(260px, 72vw);
  }

  .prices-hero h1 {
    font-size: clamp(30px, 8.6vw, 38px);
  }

  .prices-best {
    max-width: none;
    padding: 20px 20px 22px;
  }

  .prices-cta,
  .prices-maker-cta {
    justify-content: center;
    width: 100%;
  }

  /* every table: a card per row, its header as each value's label */
  .prices-scroll {
    overflow: visible;
  }

  .prices-table,
  .prices-table tbody,
  .prices-table tr,
  .prices-table td {
    display: block;
  }

  .prices-table thead {
    display: none;
  }

  .prices-table tbody {
    border-top: 1px solid var(--rule);
  }

  .prices-table tr {
    border-bottom: 1px solid var(--hair);
    display: grid;
    gap: 14px 18px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 18px 0;
  }

  .prices-table td {
    border: 0;
    min-width: 0 !important;
    overflow-wrap: anywhere;
    padding: 0;
  }

  .prices-table td:first-child {
    grid-column: 1 / -1;
  }

  .prices-table td:not(:first-child)::before {
    color: var(--ink-2);
    content: attr(data-label);
    display: block;
    font-size: 12px;
    margin-bottom: 3px;
  }

  .prices-table td:empty {
    display: none;
  }

  .prices-component {
    white-space: normal;
  }

  .prices-specs {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 18px;
  }

  .prices-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .prices-alert-row .nav-cta {
    padding: 0 18px;
  }
}

@media (max-width: 380px) {
  .prices-specs {
    grid-template-columns: minmax(0, 1fr);
  }

  .prices-filters-toggle {
    padding: 0 15px;
  }
}

.prices-native-price,
.prices-seller-native {
  display: block;
  font-size: 0.8em;
  font-weight: 400;
  opacity: 0.7;
  margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .prices-page * {
    scroll-behavior: auto;
    transition: none !important;
  }
}
