/* /comparisons/, "The sentence". Plan and sweep: docs/plans/comparisons-hub.md. Loads raw, no build.
   Text on the stage stays dark in both themes: the image plate is a mid grey in dark mode. */
.cmh { --cmh-ink: var(--rv-text-heading); --cmh-ink-2: var(--rv-text-secondary); --cmh-rule: var(--rv-brand-fill); --cmh-on-navy: var(--rv-text-on-fill); --cmh-on-navy-2: color-mix(in srgb, var(--rv-text-on-fill) 72%, var(--rv-brand-fill)); font-family: var(--rv-font-sans); }
html[data-theme="dark"] .cmh { --cmh-ink: var(--rv-brand-fill-dark); --cmh-ink-2: var(--rv-brand-fill-dark); --cmh-rule: var(--rv-brand-fill-dark); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .cmh { --cmh-ink: var(--rv-brand-fill-dark); --cmh-ink-2: var(--rv-brand-fill-dark); --cmh-rule: var(--rv-brand-fill-dark); } }

.cmh, .cmh * { box-sizing: border-box; }
.cmh h1, .cmh h2, .cmh h3, .cmh h4, .cmh p, .cmh ul { margin: 0; padding: 0; }
.cmh ul { list-style: none; }
.cmh img { display: block; max-width: 100%; }
.cmh-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cmh-w { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* The sentence */
.cmh-stage { background: var(--rv-image-plate-gradient); position: relative; padding: 56px 0 205px; }
.cmh-stage.chosen, .cmh-stage.asked { padding-bottom: 56px; }
.cmh-line { font: 500 clamp(1.875rem, 1.1rem + 2vw, 2.75rem)/1.28 var(--rv-font-serif); letter-spacing: -.015em; color: var(--cmh-ink); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.cmh-f { position: relative; flex: 1 1 380px; min-width: 0; display: block; }
.cmh .cmh-f input { width: 100%; background: none; border: 0; border-bottom: 3px solid var(--cmh-rule); border-radius: 0; padding: 0 34px 6px 2px; font: inherit; line-height: 1.2; letter-spacing: -.015em; color: var(--cmh-ink); outline: 0; box-shadow: none; }
.cmh .cmh-f input::placeholder { color: var(--cmh-ink); opacity: .55; }
.cmh .cmh-f input:focus, .cmh .cmh-f input:focus-visible { border-bottom-color: var(--rv-gold-on-light); outline: 0; box-shadow: none; }
.cmh .cmh-f input.filled { font-size: var(--rv-text-3xl); line-height: 44px; height: 59px; }
.cmh .cmh-f input.filled.long { font-size: var(--rv-text-2xl); }
.cmh-x { position: absolute; right: 0; top: 16px; width: 30px; height: 30px; display: grid; place-items: center; font: 400 26px/1 var(--rv-font-sans); color: var(--cmh-ink); text-decoration: none; }
.cmh-line > span:not(.cmh-f), .cmh-m > span, .cmh-ch a span { color: inherit; }
.cmh .cmh-cov { margin-top: 18px; font: 400 var(--rv-text-xl)/1.45 var(--rv-font-serif); color: var(--cmh-ink-2); }

/* Type-ahead */
.cmh-ta { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; display: block; background: var(--rv-surface-primary); border: 1px solid var(--rv-border-primary); border-radius: 12px; box-shadow: var(--rv-shadow-lg); overflow: hidden; font: 400 var(--rv-text-md)/1.35 var(--rv-font-sans); letter-spacing: 0; }
.cmh-ta[hidden] { display: none; }
.cmh-ta-h { display: block; font: 600 var(--rv-text-xs)/1 var(--rv-font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--rv-gold-on-light); padding: 14px 16px 6px; }
.cmh-ta a { display: flex; gap: 12px; align-items: center; padding: 7px 16px; color: var(--rv-text-primary); text-decoration: none; }
.cmh-ta a:hover, .cmh-ta a.on { background: var(--rv-surface-tertiary); }
.cmh-ta .th { width: 52px; height: 40px; flex: none; object-fit: contain; }
.cmh-ta .pc { width: 64px; height: 36px; flex: none; object-fit: cover; border-radius: 4px; }
.cmh-ta b { display: block; font-weight: 500; }
.cmh-ta small { display: block; font-size: var(--rv-text-xs); color: var(--rv-text-muted); }
.cmh-ta-none { display: block; padding: 14px 16px; color: var(--rv-text-secondary); }
.cmh-ta-none b { color: var(--rv-text-primary); }
html[data-theme="dark"] .cmh-ta .th { background: var(--rv-image-plate-gradient); border-radius: 4px; }

/* The shelf: the kind we have written most on takes a large tile, the six others sit beside it. Robots stand inside their tile. */
/* The stage ends in the gap between the two rows. Below that the band is already the pale of the mosaic. */
.cmh-band { display: flow-root; position: relative; z-index: 2; margin-top: -153px; background: linear-gradient(to bottom, transparent 153px, var(--rv-surface-secondary) 153px); }
.cmh-res--none + .cmh-band { margin-top: -108px; background: linear-gradient(to bottom, transparent 108px, var(--rv-surface-secondary) 108px); }
.cmh-sh { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: 146px 146px; gap: 14px; }
.cmh-sk { position: relative; min-width: 0; display: flex; flex-direction: column; padding: 14px 16px; background: var(--rv-surface-primary); border: 1px solid var(--rv-border-primary); border-radius: 12px; box-shadow: var(--rv-shadow-md); text-decoration: none; color: inherit; overflow: hidden; transition: transform .18s ease; }
.cmh-sk:hover { transform: translateY(-2px); }
.cmh-sk:focus-visible { outline: 2px solid var(--rv-brand-accent); outline-offset: 2px; }
.cmh-sk--big { grid-column: span 2; grid-row: span 2; padding: 20px 22px; background: var(--rv-image-plate-gradient); }
.cmh-sk h3 { font: 600 var(--rv-text-base)/1.25 var(--rv-font-serif); color: var(--rv-text-heading); white-space: nowrap; }
.cmh-sk--big h3 { font-size: var(--rv-text-2xl); color: var(--cmh-ink); }
.cmh-sn { margin-top: 3px; font: 600 var(--rv-text-xs)/1.3 var(--rv-font-sans); color: var(--rv-brand-accent); }
.cmh-sk--big .cmh-sn { margin-top: 5px; font-size: var(--rv-text-md); color: var(--cmh-ink); }
.cmh-sv { margin-top: auto; font: 400 var(--rv-text-xs)/1.3 var(--rv-font-sans); color: var(--rv-text-muted); white-space: nowrap; }
.cmh-sk--big .cmh-sv { position: absolute; right: 22px; top: 24px; margin: 0; color: var(--cmh-ink); }
.cmh-st { position: absolute; right: 12px; bottom: 10px; display: flex; align-items: flex-end; pointer-events: none; }
.cmh-sk--big .cmh-st { left: 16px; right: 16px; bottom: 14px; justify-content: center; }
.cmh .cmh-st img { height: calc(var(--h, 72px) * var(--s, 1)); width: auto; max-width: none; margin-left: -12px; filter: drop-shadow(0 3px 2px rgba(15, 23, 42, .18)); }
.cmh .cmh-st img:first-child { margin-left: 0; }
.cmh-sk[aria-current] { border-color: var(--cmh-ink); box-shadow: inset 0 0 0 2px var(--cmh-ink), var(--rv-shadow-md); }
/* Dark: black robots vanish on a dark card, so every tile takes the image plate, and text on the plate stays dark. */
html[data-theme="dark"] .cmh-sk { background: var(--rv-image-plate-gradient); }
html[data-theme="dark"] .cmh-sk h3, html[data-theme="dark"] .cmh-sn, html[data-theme="dark"] .cmh-sv { color: var(--cmh-ink); }
/* The tiles shrink with the page, and the robots must too, or they reach the words beside them. */
@media (max-width: 1247px) { .cmh-st { --s: .8; } }
/* Too narrow for the large tile to sit beside six others: it takes its own row. */
@media (max-width: 1129px) {
  .cmh-stage { padding-bottom: 164px; }
  .cmh-band { margin-top: -108px; background: linear-gradient(to bottom, transparent 108px, var(--rv-surface-secondary) 108px); }
  .cmh-sh { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 230px 146px 146px; }
  .cmh-sk--big { grid-column: span 3; grid-row: auto; }
  .cmh-sk--big .cmh-st { justify-content: flex-end; }
  .cmh-st { --s: 1; }
}
@media (prefers-reduced-motion: reduce) { .cmh-sk { transition: none; } .cmh-sk:hover { transform: none; } }

/* What are you deciding? */
.cmh-dec { padding: 56px 0 72px; background: var(--rv-surface-secondary); }
.cmh-h { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.cmh-h h2 { font: 500 var(--rv-text-3xl)/1.2 var(--rv-font-serif); color: var(--rv-text-heading); }
.cmh-h p { font-size: var(--rv-text-md); color: var(--rv-text-muted); }
.cmh-h a { font: 600 var(--rv-text-md)/1 var(--rv-font-sans); color: var(--rv-brand-accent); }
.cmh-mos { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.cmh-pl { background: var(--rv-surface-primary); border: 1px solid var(--rv-border-primary); border-radius: 12px; box-shadow: var(--rv-shadow-sm); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.cmh-ph { padding: 16px 20px 14px; }
.cmh-pl h3 { font: 500 var(--rv-text-xl)/1.25 var(--rv-font-serif); color: var(--rv-text-heading); }
.cmh-m { margin-top: 8px; display: flex; align-items: center; gap: 10px; font-size: var(--rv-text-xs); color: var(--rv-text-muted); white-space: nowrap; }
.cmh-m i { flex: 1; height: 4px; border-radius: 2px; background: var(--rv-surface-tertiary); overflow: hidden; display: block; min-width: 30px; }
.cmh-m i span { display: block; height: 100%; background: var(--rv-brand-fill); }
html[data-theme="dark"] .cmh-m i span { background: var(--rv-brand-accent); }
.cmh-pb { position: relative; flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cmh-pb:has(> .cmh-all) { padding-bottom: 44px; }
.cmh-feat { flex: 1; display: flex; flex-direction: column; min-width: 0; }
/* The picture and its own title are one link, and the title sits straight under the picture. */
.cmh-lead { flex: 1 0 auto; display: flex; flex-direction: column; min-width: 0; text-decoration: none; }
/* The picture takes whatever height the card has spare, so a card with few rows never ends in a white gap. */
.cmh-pic { position: relative; flex: 1 0 auto; display: block; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--rv-surface-tertiary); }
.cmh .cmh-pic img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease-out; }
.cmh-lead:hover .cmh-pic img { transform: scale(1.04); }
.cmh-lt { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px 20px 13px; font: 500 var(--rv-text-base)/1.3 var(--rv-font-serif); color: var(--rv-brand-accent); }
.cmh-lt span, .cmh-pl li a span, .cmh-all summary span { color: inherit; }
.cmh-lead:hover .cmh-lt > span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.cmh-arw { flex: none; font-family: var(--rv-font-sans); font-weight: 500; transition: transform .18s ease; }
.cmh-lead:hover .cmh-arw, .cmh-pl li a:hover .cmh-arw { transform: translateX(3px); }
.cmh-pl ul { font-size: var(--rv-text-md); line-height: 1.35; }
.cmh-pl li { border-top: 1px solid var(--rv-line); }
.cmh-pl li a { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 10px 20px; color: var(--rv-brand-accent); text-decoration: none; transition: background .16s ease; }
.cmh-pl li a:hover { background: var(--rv-surface-secondary); }
.cmh-pl li a:hover > span:first-child { text-decoration: underline; text-underline-offset: 2px; }
/* The whole list opens over the picture and rows, inside the card's own footprint, so nothing on the page moves. */
.cmh-all summary { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; border-top: 1px solid var(--rv-line); background: var(--rv-surface-secondary); font: 600 var(--rv-text-md)/1 var(--rv-font-sans); color: var(--rv-brand-accent); cursor: pointer; list-style: none; transition: background .16s ease, color .16s ease; }
.cmh-all summary::-webkit-details-marker { display: none; }
.cmh-all summary:hover, .cmh-all[open] summary { background: var(--rv-brand-fill); border-top-color: var(--rv-brand-fill); color: var(--rv-text-on-fill); }
.cmh-all summary svg { flex: none; transition: transform .2s ease; }
.cmh-all[open] summary svg { transform: rotate(180deg); }
.cmh-all .c, .cmh-all[open] .o { display: none; }
.cmh-all[open] .c { display: inline; }
.cmh-pl .cmh-all ul { position: absolute; inset: 0 0 44px 0; overflow-y: auto; overscroll-behavior: contain; background: var(--rv-surface-primary); }
.cmh-all li:first-child { border-top: 0; }
.cmh-pl .cmh-allk { padding: 12px 20px 6px; border-top: 0; font: 600 var(--rv-text-xs)/1.2 var(--rv-font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--rv-text-muted); }
.cmh-pl:has(.cmh-all[open]) .cmh-feat { visibility: hidden; }
/* Spans */
.cmh-s7 { grid-column: span 7; }
.cmh-s5 { grid-column: span 5; }
.cmh-s4 { grid-column: span 4; }
.cmh-s12 { grid-column: 1 / -1; }
/* Wide cards: picture and its title on the left, the rows beside them. */
.cmh-s7 .cmh-feat, .cmh-s12 .cmh-feat { flex-direction: row; }
.cmh-s7 .cmh-lead { flex: 0 0 56%; }
.cmh-s12 .cmh-lead { flex: 0 0 50%; }
.cmh-s7 .cmh-lead, .cmh-s12 .cmh-lead { border-right: 1px solid var(--rv-line); }
.cmh-s7 .cmh-rows, .cmh-s12 .cmh-rows { flex: 1; min-width: 0; border-top: 1px solid var(--rv-line); }
.cmh-s7 .cmh-rows li:first-child, .cmh-s12 .cmh-rows li:first-child { border-top: 0; }
.cmh-s7 .cmh-pic, .cmh-s12 .cmh-pic { aspect-ratio: auto; flex: 1; min-height: 240px; }
.cmh-s5 .cmh-pic { aspect-ratio: 2/1; }

.cmh-gap { border-radius: 12px; background: var(--rv-brand-gradient); color: var(--cmh-on-navy); padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cmh-gap h3 { font: 500 var(--rv-text-2xl)/1.25 var(--rv-font-serif); color: var(--cmh-on-navy); }
.cmh-gap p { font-size: var(--rv-text-md); color: var(--cmh-on-navy-2); }
.cmh-gap .bar { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--rv-text-on-fill) 14%, transparent); overflow: hidden; }
.cmh-gap .bar span { display: block; height: 100%; background: var(--rv-gold-on-dark); }
.cmh-gap > a, .cmh-not a { margin-top: auto; align-self: flex-start; display: inline-flex; height: 44px; align-items: center; padding: 0 18px; border-radius: 8px; background: var(--cmh-on-navy); color: var(--rv-brand-fill); font: 600 var(--rv-text-md)/1 var(--rv-font-sans); text-decoration: none; }
.cmh-gap > a { margin-top: 0; align-self: stretch; justify-content: space-between; gap: 12px; }
.cmh-gap > a:hover .cmh-arw { transform: translateX(3px); }
.cmh-gapk { display: flex; justify-content: space-between; gap: 12px; margin-top: -4px; font-size: var(--rv-text-xs); color: var(--cmh-on-navy-2); }
.cmh-gapk span, .cmh-gap > a span { color: inherit; }
.cmh-gapr { flex: 1; display: flex; flex-wrap: wrap; gap: 10px 4px; min-height: 170px; padding: 10px 8px 8px; border-radius: 10px; background: var(--rv-image-plate-gradient); }
.cmh-gapr a { flex: 1 1 30%; min-width: 0; padding: 0 3px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; color: var(--cmh-ink); font: 500 var(--rv-text-xs)/1.25 var(--rv-font-sans); text-align: center; text-decoration: none; }
.cmh .cmh-gapr img { flex: 0 1 auto; min-height: 0; width: auto; height: auto; max-width: 100%; max-height: 104px; object-fit: contain; transition: transform .2s ease-out; }
.cmh-gapr a:hover img { transform: translateY(-3px) scale(1.04); }
.cmh-gapr a:hover span { text-decoration: underline; text-underline-offset: 2px; }
.cmh-gapr span { color: inherit; }

/* A robot chosen */
.cmh-pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-top: 22px; align-items: start; }
.cmh-rb { display: flex; gap: 20px; align-items: flex-end; min-height: 190px; }
.cmh .cmh-rb img { height: 190px; width: auto; max-width: 58%; object-fit: contain; filter: drop-shadow(0 6px 4px rgba(15, 23, 42, .2)); }
.cmh-rb .inf { padding-bottom: 8px; min-width: 0; }
.cmh-rb .big { display: block; font: 500 var(--rv-text-2xl)/1.2 var(--rv-font-serif); color: var(--cmh-ink); text-decoration: none; }
.cmh-rb .big:hover { text-decoration: underline; }
.cmh-rb .inf > div { margin-top: 8px; }
.cmh-rb .sm, .cmh-opp .sm { font-size: var(--rv-text-md); color: var(--cmh-ink-2); }
.cmh-opp h3 { font: 600 var(--rv-text-xs)/1 var(--rv-font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--rv-gold-on-light); margin-bottom: 10px; }
html[data-theme="dark"] .cmh-opp h3 { color: var(--cmh-ink); }
.cmh-ch { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cmh-ch a { display: flex; align-items: center; gap: 8px; background: var(--rv-surface-primary); border: 1px solid var(--rv-border-primary); border-radius: 8px; padding: 6px 10px 6px 6px; font-size: var(--rv-text-xs); line-height: 1.25; min-width: 0; color: var(--rv-text-primary); text-decoration: none; }
.cmh-ch a:hover { border-color: var(--rv-brand-accent); }
.cmh .cmh-ch img { width: 36px; height: 28px; object-fit: contain; flex: none; }
html[data-theme="dark"] .cmh .cmh-ch img { background: var(--rv-image-plate-gradient); border-radius: 4px; }
.cmh-chw { margin-bottom: 40px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* Results */
.cmh-res { padding: 40px 0 72px; }
.cmh-res--none { padding-bottom: 150px; }
.cmh-ans { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: var(--rv-surface-primary); border: 1px solid var(--rv-border-primary); border-radius: 12px; box-shadow: var(--rv-shadow-md); overflow: hidden; margin-bottom: 40px; }
.cmh .cmh-ans > img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.cmh-ans .tx { padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.cmh-ans .lb { font: 600 var(--rv-text-xs)/1 var(--rv-font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--rv-gold-on-light); }
.cmh-ans h2 { font: 500 var(--rv-text-3xl)/1.2 var(--rv-font-serif); color: var(--rv-text-heading); }
.cmh-ans p { font: 400 var(--rv-text-base)/1.55 var(--rv-font-serif); color: var(--rv-text-secondary); }
.cmh-go { align-self: flex-start; display: inline-flex; height: 44px; align-items: center; padding: 0 18px; border-radius: 8px; background: var(--rv-brand-fill); color: var(--cmh-on-navy); font: 600 var(--rv-text-md)/1 var(--rv-font-sans); margin-top: auto; text-decoration: none; }
.cmh-not { background: var(--rv-brand-gradient); border-radius: 12px; padding: 32px; color: var(--cmh-on-navy-2); display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.cmh-not h2 { font: 500 var(--rv-text-2xl)/1.25 var(--rv-font-serif); color: var(--cmh-on-navy); }
.cmh-not p { font-size: var(--rv-text-md); margin-top: 6px; max-width: 58ch; color: var(--cmh-on-navy-2); }
.cmh-not a { margin-top: 0; align-self: center; flex: none; }
.cmh-gh { font: 500 var(--rv-text-xl)/1.25 var(--rv-font-serif); color: var(--rv-text-heading); margin: 28px 0 12px; }
.cmh .cmh-gh { margin: 28px 0 12px; }
.cmh .cmh-gh:first-child { margin-top: 0; }
.cmh-gl { font-size: var(--rv-text-2xl); }
.cmh-gh small { font: 400 var(--rv-text-md)/1 var(--rv-font-sans); color: var(--rv-text-muted); margin-left: 8px; }
.cmh-nop { font-size: var(--rv-text-base); color: var(--rv-text-secondary); }
.cmh-rs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cmh-rc { background: var(--rv-surface-primary); border: 1px solid var(--rv-border-primary); border-radius: 12px; overflow: hidden; box-shadow: var(--rv-shadow-sm); display: block; text-decoration: none; }
.cmh .cmh-rc img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.cmh-rc h4 { font: 500 var(--rv-text-base)/1.3 var(--rv-font-serif); color: var(--rv-text-heading); padding: 14px 16px 4px; }
.cmh-rc p { font-size: var(--rv-text-xs); color: var(--rv-text-muted); padding: 0 16px 14px; }
.cmh-rc:hover h4 { color: var(--rv-brand-accent); }

@media (max-width: 900px) {
  .cmh-stage { padding: 32px 0 130px; }
  .cmh-stage.chosen, .cmh-stage.asked { padding-bottom: 32px; }
  .cmh-w { padding: 0 16px; }
  .cmh-f { flex-basis: 100%; }
  .cmh .cmh-f input.filled { font-size: var(--rv-text-2xl); line-height: 36px; height: 44px; }
  .cmh .cmh-f input.filled.long { font-size: var(--rv-text-xl); }
  .cmh-x { top: 6px; }
  .cmh .cmh-cov { font-size: var(--rv-text-base); }
  .cmh-sh { grid-template-rows: none; grid-auto-rows: auto; gap: 10px; }
  .cmh-sk h3 { white-space: normal; }
  .cmh-sv { margin-top: 2px; }
  .cmh-st { --s: .72; position: static; margin-top: auto; padding-top: 8px; justify-content: flex-end; }
  .cmh-sk--big { min-height: 230px; }
  .cmh-sk--big .cmh-st { position: absolute; left: 16px; right: 16px; bottom: 14px; padding: 0; }
  .cmh-mos { grid-template-columns: minmax(0, 1fr); }
  .cmh-s7, .cmh-s5, .cmh-s4, .cmh-s12 { grid-column: auto; }
  .cmh-s7 .cmh-feat, .cmh-s12 .cmh-feat { flex-direction: column; }
  .cmh-s7 .cmh-lead, .cmh-s12 .cmh-lead { flex: 1 0 auto; border-right: 0; }
  .cmh-s7 .cmh-pic, .cmh-s12 .cmh-pic, .cmh-s5 .cmh-pic { aspect-ratio: 16/9; flex: 1 0 auto; min-height: 0; }
  .cmh-s7 .cmh-rows li:first-child, .cmh-s12 .cmh-rows li:first-child { border-top: 1px solid var(--rv-line); }
  .cmh-s7 .cmh-rows, .cmh-s12 .cmh-rows { border-top: 0; }
  .cmh-pick { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cmh-rb { min-height: 0; gap: 12px; }
  .cmh .cmh-rb img { max-width: 46%; height: 110px; }
  .cmh-rb .big { font-size: var(--rv-text-xl); }
  .cmh-ans { grid-template-columns: minmax(0, 1fr); }
  .cmh .cmh-ans > img { min-height: 0; aspect-ratio: 16/9; height: auto; }
  .cmh-ans .tx { padding: 20px; }
  .cmh-ans h2 { font-size: var(--rv-text-2xl); }
  .cmh-rs { grid-template-columns: minmax(0, 1fr); }
  .cmh-dec { padding: 40px 0 48px; }
}

/* Phones: two across, and the large tile stacks its words above its robots. */
@media (max-width: 600px) {
  .cmh-sh { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmh-sk--big { grid-column: span 2; min-height: 0; }
  .cmh-sk--big .cmh-sv { position: static; margin-top: 2px; }
  .cmh-sk--big .cmh-st { --s: .58; position: static; margin-top: 12px; padding: 0; justify-content: center; }
}

/* Tablets: the drawing has a desktop and a phone. Between them the sentence stays on one line
   and the plates sit two across, or every painting runs the full width of an iPad. */
@media (min-width: 601px) and (max-width: 900px) {
  .cmh-f { flex-basis: 220px; }
  .cmh-mos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmh-mos > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cmh-rs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .cmh .cmh-pic img, .cmh-arw, .cmh .cmh-gapr img { transition: none; } .cmh-lead:hover .cmh-pic img, .cmh-gapr a:hover img, .cmh-lead:hover .cmh-arw, .cmh-pl li a:hover .cmh-arw { transform: none; } }
