/* The AI site search article: the cost in numbers, the video, then each search as typical search
   next to search that understands. Tokens and fonts come from site.css, the column from narrow.css;
   the comparisons and the video break out of the column to the page's full width. */
.page-article-ai-site-search .bleed { width: min(1016px, calc(100vw - 32px)); margin-left: 50%; translate: -50% 0; }

/* The cost: one big number, then four facts. */
.cost { margin: 0 0 32px; }
.cost .big { font: 700 clamp(64px, 14vw, 120px)/.95 var(--mono); color: var(--accent); letter-spacing: -.04em; }
.cost .line { font-size: clamp(20px, 3vw, 24px); line-height: 1.3; font-weight: 600; margin: 12px 0 0; max-width: 30ch; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts div { margin: 0; }
.facts b { display: block; font: 700 32px/1 var(--mono); color: var(--fg); }
.facts span { display: block; font-size: 14px; line-height: 1.45; color: var(--muted); margin-top: 8px; }

/* The video: its cover until a click, then the YouTube player (video.js, .video in narrow.css). */
.demo { margin: 0 0 40px; }
.demo .video { aspect-ratio: 1440 / 900; }
/* A play button on the cover only (a.video); the player that replaces it is a div. */
.demo a.video { position: relative; }
.demo a.video::before { content: ""; position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; translate: -50% -50%; border-radius: 50%; background: var(--accent); box-shadow: 0 6px 24px rgb(0 0 0 / .35); transition: scale var(--dur-1) var(--ease-out); }
.demo a.video::after { content: ""; position: absolute; top: 50%; left: 50%; translate: -35% -50%; border-style: solid; border-width: 14px 0 14px 23px; border-color: transparent transparent transparent var(--accent-ink); }
.demo a.video:hover::before, .demo a.video:focus-visible::before { scale: 1.08; }
.demo figcaption { font: 13px var(--mono); color: var(--muted); margin-top: 10px; }
.transcript { margin: 12px 0 0; font-size: 15px; color: var(--muted); }
.transcript summary { cursor: pointer; font: 13px var(--mono); color: var(--fg); }
.transcript p { margin: 8px 0 0; }

/* One search: the query, then the two stores side by side (stacked on a phone). */
.search-case { margin: 56px 0 0; }
.search-case h3 { font-size: 20px; margin: 0 0 12px; }
.step-label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font: 13px var(--mono); color: var(--muted); margin: 20px 0 0; }
.q { font: 500 14px var(--mono); color: var(--fg); background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.q::before { content: "⌕ "; color: var(--muted); }
.pair { display: grid; gap: 16px; margin: 16px 0 0; }
@media (min-width: 820px) { .pair { grid-template-columns: 1fr 1fr; } }
.side { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.side.good { border-color: var(--accent); background: var(--accent-soft); }
.side-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.side-label { font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.good .side-label { color: var(--accent); }
.note { font: 12px var(--mono); color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 0; }
.prod { margin: 0; min-width: 0; border-radius: 8px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
/* Product photos are shot on white; a white box keeps each one whole whatever its shape. */
.prod .ph { position: relative; aspect-ratio: 4 / 5; background: #fff; }
.prod img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mark { position: absolute; top: 6px; right: 6px; font: 700 13px/1 var(--mono); border-radius: 999px; padding: 5px 7px; }
.mark.yes { background: var(--accent); color: var(--accent-ink); }
.mark.no { background: var(--warn); color: var(--bg); }
.prod figcaption { display: grid; gap: 2px; padding: 8px 10px 10px; }
.prod .brand { font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.prod .title { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod .price { font: 13px var(--mono); color: var(--muted); }
.verdict { font-weight: 600; margin: 12px 0 0; }
.verdict.sale { color: var(--accent); }
.verdict.no-sale { color: var(--warn); }

/* It pays for itself: three numbers. */
.pay-grid { display: grid; gap: 16px; margin: 20px 0 0; }
@media (min-width: 720px) { .pay-grid { grid-template-columns: repeat(3, 1fr); } }
.pay-grid div { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--bg-2); }
.pay-grid b { display: block; font: 700 36px/1 var(--mono); color: var(--accent); letter-spacing: -.02em; }
.pay-grid span { display: block; font-size: 15px; margin-top: 10px; }

.sources { font-size: 14px; color: var(--muted); margin: 40px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.sources ol { margin: 8px 0 0; }
.sources a { color: var(--fg); }
