/* InfraredTested product pages: the decision block at the top of every review and the comparison summary at the
 * top of every "best of" guide. Source: the designer's home-mock.css (review and roundup parts) and spec.md.
 * Things you can buy sit on paper; the block is a paper plate on whatever dark page it lands on.
 *
 * Rules this file follows (the pages it lands on load different old stylesheets: main.css, design.css,
 * editorial.css and inline blocks, several with !important):
 * - Every selector starts with .irp-, and every custom property is --irp-*, so nothing here restyles the
 *   page and the page's old rules cannot restyle this block.
 * - Every element in the block carries an irp- class, and every property it relies on is set by a rule of two
 *   classes or more. That beats the old descendant rules such as ".article-body li" (0,1,1).
 * - editorial.css sets colour and text-decoration on links with !important at (0,4,1) and on lists with
 *   !important. Links here carry :not(#irp), which adds an id's worth of specificity, and !important.
 * - The block uses no p, h2, h3, strong or nav elements: editorial.css and the old inline CSS restyle those
 *   (a bare "nav" rule on several pages makes any nav sticky), and editorial.js builds its own "On this page"
 *   rail from every h2.
 * - Layout follows the width of the block, not of the window (container queries), because on these pages the
 *   article column is 700 to 760px wide whatever the screen is. Without container-query support the stacked
 *   phone layout is used at every width. */

.irp-root {
  /* tokens from the designer's spec.md, section 4 */
  --irp-paper: #f5f2ed;
  --irp-paper-2: #ebe6de;
  --irp-plate: #ffffff;
  --irp-ink: #16181c;
  --irp-ink-soft: #4b4f57;
  --irp-line: #d9d2c7;
  --irp-line-strong: #b9b1a5;
  --irp-accent: #f0483a;
  --irp-on-accent: #101216;
  --irp-accent-ink: #b42a1d;
  --irp-accent-hover: #f4604f;
  --irp-r: 16px;
  --irp-r-sm: 12px;
  --irp-pill: 999px;
  --irp-display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --irp-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --irp-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --irp-dur: 180ms;

  container-type: inline-size;
  display: block;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 24px 0 32px;
  padding: 0;
  border: 0;
  background: none;
  float: none;
  clear: both;
  color: var(--irp-ink);
  font: 400 16px/1.5 var(--irp-body);
  letter-spacing: normal;
  text-align: left;
  text-indent: 0;
  text-transform: none;
  text-shadow: none;
  white-space: normal;
  font-style: normal;
  font-variant: normal;
  -webkit-text-fill-color: currentColor;
  -webkit-text-size-adjust: 100%;
}
.irp-root *, .irp-root *::before, .irp-root *::after { box-sizing: border-box; }

/* ---------------- the plate ---------------- */
.irp-root .irp-plate {
  display: grid; gap: 14px; margin: 0; padding: 16px;
  background: var(--irp-paper); color: var(--irp-ink); border: 0; border-radius: var(--irp-r);
  box-shadow: 0 18px 44px -26px rgba(0, 0, 0, 0.65);
}

/* ---------------- text ---------------- */
.irp-root .irp-cat { margin: 0; padding: 0; color: var(--irp-ink-soft); font: 500 14px/1.35 var(--irp-body); }
.irp-root .irp-name { margin: 0; padding: 0; color: var(--irp-ink); font: 600 21px/1.15 var(--irp-display); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.irp-root .irp-fine { margin: 0; padding: 0; color: var(--irp-ink-soft); font: 400 14px/1.45 var(--irp-body); }
.irp-root .irp-verdict { margin: 0; padding: 0; color: var(--irp-ink); font: 500 16px/1.45 var(--irp-body); }
.irp-root .irp-price { margin: 0; padding: 0; color: var(--irp-ink); font: 700 17px/1.2 var(--irp-body); }
.irp-root .irp-price-lg { font: 600 28px/1.05 var(--irp-display); letter-spacing: -0.01em; }
.irp-root .irp-sr { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* links: editorial.css colours every link in .article-body with !important, so these carry :not(#irp) */
.irp-root .irp-link:not(#irp), .irp-root .irp-a:not(#irp) {
  color: var(--irp-ink) !important; background: none; text-decoration: underline !important;
  text-decoration-thickness: 1px !important; text-decoration-color: currentColor !important; text-underline-offset: 4px;
  font-weight: 700; transition: none;
}
.irp-root .irp-link:not(#irp) { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--irp-body); font-size: 15px; line-height: 1.3; }
.irp-root .irp-a:not(#irp) { font-size: inherit; line-height: inherit; font-weight: 600; }
.irp-root .irp-link:not(#irp):hover, .irp-root .irp-a:not(#irp):hover { color: var(--irp-accent-ink) !important; }
/* the inline disclosure link is 14px text; its hit area is padded to 44px without changing the line */
.irp-root .irp-a { position: relative; }
.irp-root .irp-a::after { content: ""; position: absolute; left: -6px; right: -6px; top: 50%; height: 44px; transform: translateY(-50%); }
.irp-root a:focus-visible { outline: 3px solid var(--irp-ink) !important; outline-offset: 3px !important; border-radius: 4px; }

/* ---------------- buy button ---------------- */
.irp-root .irp-btn:not(#irp) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 48px; margin: 0; padding: 12px 24px; border: 1px solid transparent; border-radius: var(--irp-pill);
  font: 700 15px/1.2 var(--irp-body); letter-spacing: normal; text-transform: none; text-decoration: none !important; cursor: pointer;
  box-shadow: none; text-shadow: none;
  transition: background-color var(--irp-dur) var(--irp-ease), transform var(--irp-dur) var(--irp-ease);
}
.irp-root .irp-btn-buy:not(#irp) { background: var(--irp-accent); color: var(--irp-on-accent) !important; }
.irp-root .irp-btn-buy:not(#irp):hover { background: var(--irp-accent-hover); color: var(--irp-on-accent) !important; transform: none; }
.irp-root .irp-btn-buy:not(#irp):active { transform: translateY(1px); }
/* editorial.css adds " ↗" to every sponsored link; this button draws its own arrow */
.irp-root a.irp-btn-buy::after {
  content: ""; width: 10px; height: 10px; flex: none; margin: 0; padding: 0; background: currentColor; font: inherit;
  clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 80%, 80% 34%, 14% 100%, 0 86%, 66% 20%, 20% 20%);
}
.irp-root .irp-lowflag { margin: 0; padding: 6px 0; color: var(--irp-ink-soft); font: 600 14px/1.4 var(--irp-body); }

/* ---------------- score ---------------- */
.irp-root .irp-score { display: grid; gap: 6px; margin: 0; padding: 0; }
.irp-root .irp-score-num { display: flex; align-items: baseline; gap: 3px; margin: 0; padding: 0; color: var(--irp-ink); }
.irp-root .irp-num { color: var(--irp-ink); font: 600 34px/1 var(--irp-display); letter-spacing: -0.02em; }
.irp-root .irp-score-of { color: var(--irp-ink-soft); font: 600 15px/1 var(--irp-body); }
.irp-root .irp-meter { display: block; width: 100%; max-width: 120px; height: 4px; margin: 0; padding: 0; border-radius: 4px; background: var(--irp-paper-2); overflow: hidden; }
.irp-root .irp-fill { display: block; height: 100%; width: calc(var(--irp-s) * 10%); margin: 0; padding: 0; border-radius: inherit; background: var(--irp-ink); }

/* ---------------- product wells: the one tile treatment (spec section 7) ---------------- */
.irp-root .irp-well { position: relative; display: block; aspect-ratio: 1 / 1; width: 100%; margin: 0; padding: 0; border-radius: var(--irp-r-sm); overflow: hidden; background: var(--irp-well, var(--irp-plate)); }
.irp-root .irp-well::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(22, 24, 28, 0.09); pointer-events: none; }
.irp-root .irp-img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; object-fit: cover; box-shadow: none; }
.irp-root .irp-well.irp-is-contain .irp-img { object-fit: contain; padding: 10%; }
.irp-root .irp-well.irp-is-contain.irp-is-dark .irp-img { padding: 12%; }
.irp-root .irp-well.irp-is-dark::after { border-color: rgba(255, 255, 255, 0.08); }
.irp-root .irp-well.irp-is-text { display: grid; align-content: end; gap: 4px; padding: 14%; background: var(--irp-paper-2); }
.irp-root .irp-well.irp-is-text::before { content: ""; position: absolute; left: 14%; top: 14%; width: 28px; height: 4px; border-radius: 2px; background: var(--irp-accent-ink); }
/* A word in a text tile never breaks inside itself (no overflow-wrap, no hyphens): a tile too narrow for the full name shows the brand alone. */
.irp-root .irp-tile-brand { color: var(--irp-ink-soft); font: 600 13px/1.3 var(--irp-body); overflow-wrap: normal; word-break: normal; hyphens: manual; }
.irp-root .irp-tile-name { color: var(--irp-ink); font: 600 17px/1.15 var(--irp-display); overflow-wrap: normal; word-break: normal; hyphens: manual; }
.irp-root .irp-well.irp-is-sm { border-radius: 10px; }
.irp-root .irp-well.irp-is-sm.irp-is-contain .irp-img { padding: 8%; }
/* The small tile (guide tables) is 76px wide on a phone and 72px from 640px: it shows the brand alone, in 11px type, which the longest
 * brand (DeluxeSkin, 56px) fits with 6px of padding. The device's full name is printed beside the tile. */
.irp-root .irp-well.irp-is-sm.irp-is-text { padding: 6px; align-content: center; }
.irp-root .irp-well.irp-is-sm.irp-is-text::before { display: none; }
.irp-root .irp-well.irp-is-sm .irp-tile-name { display: none; }
.irp-root .irp-well.irp-is-sm .irp-tile-brand { color: var(--irp-ink); font-size: 11px; line-height: 1.2; }
/* The tile of the decision block is 88px wide while the block is narrower than 560px (a phone): there too the brand alone, in 12px type. */
@container (max-width: 559px) {
  .irp-root.irp-decision .irp-well.irp-is-text:not(.irp-is-sm) { padding: 12px; }
  .irp-root.irp-decision .irp-well.irp-is-text:not(.irp-is-sm)::before { display: none; }
  .irp-root.irp-decision .irp-well.irp-is-text:not(.irp-is-sm) .irp-tile-name { display: none; }
  .irp-root.irp-decision .irp-well.irp-is-text:not(.irp-is-sm) .irp-tile-brand { color: var(--irp-ink); font-size: 12px; line-height: 1.2; }
}

/* ---------------- decision block ---------------- */
/* Phone layout (a block narrower than 560px): one grid for the whole plate. The photo sits left; the name, then the score and
 * the price, beside it; the price note, the verdict line, the disclosure with the buy button, and then the rest, below. */
.irp-root .irp-top, .irp-root .irp-facts { display: contents; }
.irp-root .irp-decision-plate { grid-template-columns: 88px auto minmax(0, 1fr); grid-template-areas: "pic head head" "pic score price" "note note note" "verdict verdict verdict" "buy buy buy" "more more more"; column-gap: 12px; align-items: start; }
.irp-root .irp-decision-plate .irp-well { grid-area: pic; align-self: start; }
.irp-root .irp-decision-plate .irp-head { grid-area: head; align-self: end; }
.irp-root .irp-decision-plate .irp-fact-score { grid-area: score; align-self: start; margin-top: -4px; }
.irp-root .irp-decision-plate .irp-fact-price { grid-area: price; align-self: end; margin: 0 0 0 8px; }
.irp-root .irp-decision-plate .irp-price-note { grid-area: note; }
.irp-root .irp-decision-plate .irp-verdict { grid-area: verdict; }
.irp-root .irp-decision-plate .irp-buy { grid-area: buy; }
.irp-root .irp-decision-plate .irp-more { grid-area: more; }
.irp-root .irp-head { display: grid; gap: 2px; min-width: 0; margin: 0; padding: 0; }
.irp-root .irp-fact { display: grid; gap: 4px; align-content: end; min-width: 0; margin: 0; padding: 0; }
/* everything that follows the buy button: Best for / Skip if, sub-scores, the rubric link, "On this page" */
.irp-root .irp-more { display: grid; gap: 12px; margin: 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--irp-line); }
.irp-root .irp-more > .irp-link:not(#irp) { justify-self: start; }
.irp-root .irp-fit { display: grid; gap: 8px; margin: 0; padding: 0; }
.irp-root .irp-fit-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: baseline; margin: 0; padding: 0; }
.irp-root .irp-fit-label { margin: 0; padding: 0; color: var(--irp-ink); font: 700 13px/1.3 var(--irp-body); }
.irp-root .irp-fit-label.irp-is-skip { color: var(--irp-accent-ink); }
.irp-root .irp-fit-text { margin: 0; padding: 0; color: var(--irp-ink); font: 400 15px/1.45 var(--irp-body); }
.irp-root .irp-buy { display: grid; gap: 8px; margin: 0; padding: 0; }
.irp-root .irp-buy .irp-btn { width: 100%; }
.irp-root .irp-buy .irp-link { justify-content: center; }

/* ---------------- "On this page": chips ---------------- */
.irp-root .irp-toc { display: grid; gap: 8px; margin: 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--irp-line); }
.irp-root .irp-toc-title { margin: 0; padding: 0; color: var(--irp-ink); font: 600 16px/1.3 var(--irp-display); }
.irp-root .irp-chips { display: flex; flex-wrap: nowrap; gap: 8px; margin: 0 -16px; padding: 0 16px 4px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.irp-root .irp-chips::-webkit-scrollbar { display: none; }
.irp-root .irp-chip-item { flex: none; margin: 0; padding: 0; border: 0; list-style: none; color: var(--irp-ink); }
.irp-root .irp-chip:not(#irp) {
  display: inline-block; max-width: 17rem; margin: 0; padding: 11px 16px; overflow: hidden;
  border: 1px solid var(--irp-line-strong); border-radius: var(--irp-pill); background: var(--irp-plate);
  color: var(--irp-ink) !important; font: 600 14px/20px var(--irp-body); text-decoration: none !important; text-overflow: ellipsis; white-space: nowrap;
  transition: border-color var(--irp-dur) var(--irp-ease), background-color var(--irp-dur) var(--irp-ease);
}
.irp-root .irp-chip:not(#irp):hover { border-color: var(--irp-ink); background: var(--irp-paper-2); color: var(--irp-ink) !important; }

/* ---------------- guide summary ---------------- */
.irp-root .irp-sum-head { display: grid; gap: 8px; margin: 0; padding: 0; }
.irp-root .irp-title { margin: 0; padding: 0; color: var(--irp-ink); font: 600 26px/1.1 var(--irp-display); letter-spacing: -0.02em; }
.irp-root .irp-table { display: block; width: 100%; margin: 0; padding: 0; border: 0; border-collapse: collapse; border-spacing: 0; background: none; color: var(--irp-ink); }
.irp-root .irp-thead { position: absolute; display: block; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.irp-root .irp-tbody { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; }
.irp-root .irp-row {
  display: grid; grid-template-columns: 76px minmax(0, 1fr);
  grid-template-areas: "thumb text" "score price" "verdict verdict" "act act";
  gap: 10px 14px; margin: 0; padding: 14px; background: var(--irp-plate); border: 1px solid var(--irp-line); border-radius: var(--irp-r-sm);
}
.irp-root .irp-th-device { display: contents; margin: 0; padding: 0; border: 0; background: none; text-align: left; font-weight: 400; }
.irp-root .irp-dev { display: contents; }
.irp-root .irp-dev-thumb { grid-area: thumb; }
.irp-root .irp-dev-name { grid-area: text; align-self: center; min-width: 0; margin: 0; padding: 0; color: var(--irp-ink); font: 600 17px/1.2 var(--irp-display); overflow-wrap: anywhere; }
.irp-root .irp-td { display: block; margin: 0; padding: 0; border: 0; background: none; color: var(--irp-ink); text-align: left; font-weight: 400; vertical-align: top; }
.irp-root .irp-td-score { grid-area: score; padding-top: 12px; border-top: 1px solid var(--irp-line); }
.irp-root .irp-td-price { grid-area: price; display: flex; align-items: flex-end; justify-content: flex-end; padding-top: 12px; border-top: 1px solid var(--irp-line); text-align: right; }
.irp-root .irp-td-verdict { grid-area: verdict; }
.irp-root .irp-td-act { grid-area: act; }
.irp-root .irp-act { display: grid; gap: 0; justify-items: stretch; margin: 0; padding: 0; }
.irp-root .irp-act .irp-btn { width: 100%; }
.irp-root .irp-act .irp-link { justify-content: center; }
.irp-root .irp-row .irp-num { font-size: 28px; }
.irp-root .irp-th { margin: 0; padding: 0 12px 10px 0; border: 0; border-bottom: 2px solid var(--irp-ink); background: none; color: var(--irp-ink-soft); font: 700 13px/1.3 var(--irp-body); text-align: left; white-space: nowrap; }
.irp-root .irp-sum-note { margin: 0; padding: 0; color: var(--irp-ink); font: 500 15px/1.45 var(--irp-body); }
.irp-root .irp-sum-foot { display: grid; gap: 6px; margin: 0; padding: 14px 0 0; border: 0; }

/* ---------------- wider blocks ---------------- */
@container (min-width: 560px) {
  .irp-root .irp-plate { padding: 24px; gap: 14px 24px; }
  /* photo on the left; name, score and price, the verdict and the buy button stacked beside it; the rest below */
  .irp-root .irp-decision-plate { grid-template-columns: 168px minmax(0, 1fr); grid-template-areas: "pic head" "pic facts" "pic verdict" "pic buy" "more more"; align-items: start; }
  .irp-root .irp-decision-plate { column-gap: 24px; }
  /* score and price side by side, the price note across both under them */
  .irp-root .irp-decision-plate .irp-facts { display: grid; grid-area: facts; grid-template-columns: auto minmax(0, 1fr); gap: 6px 24px; align-items: end; margin: 0; padding: 0; border: 0; }
  .irp-root .irp-decision-plate .irp-fact-score, .irp-root .irp-decision-plate .irp-fact-price, .irp-root .irp-decision-plate .irp-price-note { grid-area: auto; align-self: auto; margin: 0; }
  .irp-root .irp-decision-plate .irp-price-note { grid-column: 1 / -1; }
  .irp-root .irp-decision-plate .irp-buy { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 20px; }
  .irp-root .irp-decision-plate .irp-buy .irp-fine { grid-column: 1 / -1; }
  .irp-root .irp-decision-plate .irp-buy .irp-btn { width: auto; }
  .irp-root .irp-decision-plate .irp-buy .irp-link { justify-content: flex-start; }
  .irp-root .irp-name { font-size: 26px; }
  .irp-root .irp-chips { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
  .irp-root .irp-chip:not(#irp) { max-width: 100%; white-space: normal; text-overflow: clip; }
  .irp-root .irp-fit-row { grid-template-columns: 84px minmax(0, 1fr); }
}
/* From 700px of block width the buy column moves to the right of the name, score, price and verdict, so the button sits
 * level with them and not under them: photo | name, score, price, verdict | disclosure, button, verdict link. */
@container (min-width: 700px) {
  .irp-root .irp-decision-plate.irp-plate { padding-block: 20px; }
  .irp-root .irp-decision-plate { grid-template-columns: 136px minmax(0, 1fr) 280px; grid-template-areas: "pic head buy" "pic facts buy" "pic verdict buy" "more more more"; column-gap: 24px; }
  .irp-root .irp-decision-plate .irp-buy { grid-template-columns: minmax(0, 1fr); align-self: start; align-items: stretch; gap: 8px; }
  .irp-root .irp-decision-plate .irp-buy .irp-btn:not(#irp) { width: 100%; padding-inline: 16px; }
  .irp-root .irp-decision-plate .irp-buy .irp-link { justify-content: center; }
}
/* The table. Below 640px each row is a stacked card (above). From 640px the rows are table rows again: the markup is a
 * real table with role attributes, and the rows are laid out as grids so the verdict can sit under the name until there is
 * room for a column of its own (880px). The article column on these pages is 700 to 760px wide. */
@container (min-width: 640px) {
  .irp-root .irp-thead { position: static; display: block; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .irp-root .irp-tbody { display: block; }
  .irp-root .irp-hrow, .irp-root .irp-row {
    display: grid; grid-template-columns: minmax(0, 1fr) 64px 84px 168px; column-gap: 14px; row-gap: 6px; align-items: center;
    margin: 0; padding: 12px 0; border: 0; border-bottom: 1px solid var(--irp-line); border-radius: 0; background: none;
  }
  .irp-root .irp-hrow { padding: 0 0 8px; border-bottom: 2px solid var(--irp-ink); }
  .irp-root .irp-row { grid-template-areas: "dev score price act" "verdict score price act"; }
  .irp-root .irp-th { padding: 0; border: 0; }
  .irp-root .irp-hrow .irp-th:nth-child(4) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .irp-root .irp-th-device { display: block; grid-area: dev; }
  .irp-root .irp-dev { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: center; }
  /* a row whose device has a text tile: the tile is 72px wide (the brand does not fit in 48), and the verdict line moves in line with the name */
  .irp-root .irp-dev:has(.irp-is-text) { grid-template-columns: 72px minmax(0, 1fr); }
  .irp-root .irp-row:has(.irp-is-text) .irp-td-verdict { padding-left: 86px; }
  .irp-root .irp-dev-thumb, .irp-root .irp-dev-name { grid-area: auto; }
  .irp-root .irp-td-score { grid-area: score; padding: 0; border: 0; }
  .irp-root .irp-td-price { grid-area: price; display: block; padding: 0; border: 0; text-align: left; }
  .irp-root .irp-td-verdict { grid-area: verdict; padding: 0 0 0 62px; }
  .irp-root .irp-td-act { grid-area: act; }
  .irp-root .irp-row .irp-num { font-size: 24px; }
  .irp-root .irp-row .irp-meter { max-width: 64px; }
  .irp-root .irp-row .irp-verdict { font-size: 14px; line-height: 1.4; }
  .irp-root .irp-act .irp-btn:not(#irp) { padding: 10px 14px; font-size: 14px; }
}
@container (min-width: 880px) {
  .irp-root .irp-hrow, .irp-root .irp-row { grid-template-columns: minmax(220px, 1.1fr) 72px 92px minmax(0, 1.3fr) 190px; }
  .irp-root .irp-row { grid-template-areas: "dev score price verdict act"; }
  .irp-root .irp-hrow .irp-th:nth-child(4) { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .irp-root .irp-dev { grid-template-columns: 64px minmax(0, 1fr); }
  .irp-root .irp-td-verdict, .irp-root .irp-row:has(.irp-is-text) .irp-td-verdict { padding: 0; }
}

/* ---------------- phones: tighter spacing in the decision block (below 640px) ---------------- */
@media (max-width: 639px) {
  /* spacing and leading only: margins, padding, gaps and line-heights. Type sizes, photo size and content are as designed. */
  .irp-root.irp-decision { margin: 6px 0 20px; }
  .irp-root.irp-decision .irp-plate { gap: 6px 12px; padding: 8px 12px 12px; }
  .irp-root.irp-decision .irp-head { gap: 0; }
  .irp-root.irp-decision .irp-cat { line-height: 1.25; }
  .irp-root.irp-decision .irp-fact { gap: 2px; }
  .irp-root.irp-decision .irp-price-note { line-height: 1.3; }
  .irp-root.irp-decision .irp-verdict { line-height: 1.35; }
  .irp-root.irp-decision .irp-disclosure { line-height: 1.3; }
  .irp-root.irp-decision .irp-buy { gap: 4px; }
  .irp-root.irp-decision .irp-more { gap: 10px; padding-top: 10px; }
}

/* ---------------- phones: the buy button before the price note and the verdict line (below 640px) ----------------
 * Visual order on a phone: photo and name; score and price; the disclosure sentence and the buy button with "Jump to the
 * full verdict" (one .irp-buy, disclosure first); then the price note; then the verdict line; then the rest. This is a
 * visual reorder of the grid areas only. The HTML order stays: price note, verdict line, disclosure sentence, buy button,
 * rest. That reads correctly on its own (a screen reader, a browser without CSS, the print view), and the focus order is
 * unchanged because the price note and the verdict line hold no link or control.
 * Two rules, because the block is laid out by its own width: under 560px (the phone layout above) and from 560px, which
 * a window of 560 to 639px still reaches. From 640px of window width none of this applies. */
@media (max-width: 639px) {
  @container (max-width: 559px) {
    .irp-root.irp-decision .irp-decision-plate { grid-template-areas: "pic head head" "pic score price" "buy buy buy" "note note note" "verdict verdict verdict" "more more more"; }
  }
  @container (min-width: 560px) {
    .irp-root.irp-decision .irp-decision-plate { grid-template-areas: "pic head" "pic facts" "pic buy" "pic verdict" "more more"; }
  }
}

/* ---------------- NAMED EXCEPTIONS: rules that reach outside the .irp- prefix ----------------
 * Each applies only to a page that contains a decision block (or, for the third, a guide summary): the selector starts with
 * body:has(.irp-decision) and so matches nothing on any other page, and in a browser without :has() it matches nothing
 * anywhere, which leaves the old page exactly as it was. scripts/verify-showroom.py allows exactly these selectors.
 *
 * Exception 1, "irp-exception-h1": the page's own <h1> below 640px, font size and line height only. The words and the
 * markup are untouched. For the layouts whose h1 is larger than 26px on a phone: the editorial article layout
 * (body.article-page, <header class="article-header">, h1 54.6px) and the wand review layout (<div class="review-hero">,
 * h1 30px). The panel, sauna and currentbody-style layouts are already 24 to 25.6px and are left alone. The old rules are
 * !important, so this one is too. 26px is the smallest size the card allows. */
@media (max-width: 639px) {
  body:has(.irp-decision) :is(.article-header, .review-hero) h1 { font-size: 26px !important; line-height: 1.15 !important; }
}
/* Exception 2, "irp-exception-hero-height": the header group that holds the h1 has min-height: 85vh in main.css, which
 * leaves a blank band between the h1 and the block. For the layouts that use <div class="hero"> (the currentbody-style
 * mask and sauna reviews). No other property of the hero changes. */
body:has(.irp-decision) .hero:has(h1) { min-height: 0; }
/* Exception 3, "irp-exception-rail": the contents rail that editorial.js adds beside the article (.article-rail) is shown
 * from 1101px up (editorial.css hides it at max-width: 1100px). Where the page has that rail, the block's own "On this page"
 * list repeats it and is hidden. For the editorial article layout. With JavaScript off there is no rail, the :has() does
 * not match, and the block's list stays. */
@media (min-width: 1101px) {
  body:has(.irp-decision, .irp-summary):has(.article-rail) .irp-root .irp-toc { display: none; }
}

/* Exception 4, "irp-exception-pagehead": tighter margins and padding around the page's own subtitle, byline and meta row, below
 * 640px only, so the block starts higher on a phone. Margin and padding only: no font size, no text, nothing hidden, and no
 * value below 8px. Every value is smaller than the one the old page sets, so nothing gets more room. The layouts:
 *   - the panel and sauna reviews (<div class="container">; <p class="subtitle"> and <div class="meta-row"> follow the h1;
 *     margin-bottom 32px and 40px, meta-row padding-bottom 24px);
 *   - the wand reviews (<div class="review-hero">; <div class="review-kicker"> above the h1, <p class="review-subtitle"> below);
 *   - the currentbody-style mask and sauna reviews (<div class="hero">; <div class="meta-row">);
 *   - the editorial article layout (body.article-page, which editorial.js adds; <header class="article-header">;
 *     <div class="article-meta">, margin-top 20px !important in editorial.css, so this one is !important too). The
 *     solawave review's byline has no top margin and is not on that layout, so the rule does not match it.
 * The h1 is not touched. */
@media (max-width: 639px) {
  body:has(.irp-decision) :is(.subtitle, .review-subtitle) { margin-bottom: 12px; }
  body:has(.irp-decision) .review-kicker { margin-bottom: 8px; }
  body:has(.irp-decision) .review-hero { padding-top: 24px; }
  body:has(.irp-decision) .meta-row { margin-bottom: 16px; }
  body:has(.irp-decision) .container > .meta-row { padding-bottom: 12px; }
  body.article-page:has(.irp-decision) .article-meta { margin-top: 12px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .irp-root .irp-btn:not(#irp), .irp-root .irp-chip:not(#irp) { transition: none; }
  /* no transform on any hovered or pressed state */
  .irp-root .irp-btn:not(#irp):hover, .irp-root .irp-btn:not(#irp):active, .irp-root .irp-btn-buy:not(#irp):hover, .irp-root .irp-btn-buy:not(#irp):active { transform: none; }
}
