/* The compare and alternatives pages (M4, NEW-674 and NEW-675): the rival column holds sentences
   with a source tail, so it wraps at every width. how.css (the v12 import) keeps nowrap above 860px
   for its own tables; this sheet loads after it on the rival pages only. */
table.plain.crossing.rival td:nth-child(2) { white-space: normal; }

/* /compare and /alternatives (plan 2026-11-09-2150 U10 and U24): only the hubs wrap their feature lists in .hub-grid.
   The five feature lists two across from 900px up, a rule between rows, the odd fifth list at one
   column's width on the left. No column gap, so each row's rule runs unbroken; the columns keep
   their distance with padding instead. Under 900px the wrapper is a plain block, as before. */
@media (min-width: 900px) {
  .hub-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .hub-grid > .chapter { border-top: 1px solid var(--rule); padding-top: clamp(24px, 3vw, 40px); }
  .hub-grid > .chapter:nth-child(-n + 2) { border-top: 0; padding-top: 0; }
  .hub-grid > .chapter:nth-child(odd) { padding-right: clamp(24px, 3vw, 48px); }
  .hub-grid > .chapter:nth-child(even) { padding-left: clamp(24px, 3vw, 48px); }
  /* an odd chapter left alone on the last row runs the full width, so the rule above it does too */
  .hub-grid > .chapter:last-child:nth-child(odd) { grid-column: 1 / -1; padding-right: 0; }
}

/* Build three U26 (specs/compare.md section 1): /compare's tiles under its table. One group per feature; each tile one
   link: the page's own picture in a 3:2 frame, the two names, the hook whole (FIX-10: the three-line clamp cut two
   hooks with an ellipsis; the tiles in a row keep one height, each tile filling its grid cell). Three across from 1100px,
   two from 640px; under that a compact row (a 72px picture and the name, no hook) so the list stays short. The tile
   carries the kit's lift (kit.css), which draws its own ::after, so the tile draws none and clips nothing. */
.hub-tiles__group { margin-top: clamp(28px, 4vw, 48px); }
.hub-tiles__group:first-of-type { margin-top: 0; }
.hub-tiles__group h3 { margin: 0 0 4px; font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
.hub-tiles__group > p { margin: 0 0 16px; color: var(--muted); }
.hub-tiles__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.hub-tiles__grid > li { min-width: 0; }
.hub-tile { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; min-height: 56px; padding: 8px 12px 8px 8px; color: inherit; text-decoration: none; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-sm); }
.hub-tile__pic { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px; background: var(--rule); }
.hub-tile__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hub-tile__name { font-family: var(--head); font-weight: 700; line-height: 1.25; }
.hub-tile__hook { display: none; }
@media (min-width: 640px) {
  .hub-tiles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
  .hub-tile { grid-template-columns: minmax(0, 1fr); align-items: start; align-content: start; gap: 10px; height: 100%; padding: 0 0 18px; border-radius: var(--radius); }
  .hub-tile__pic { border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
  .hub-tile__name, .hub-tile__hook { padding: 0 18px; }
  .hub-tile__name { padding-top: 4px; font-size: 1.1rem; }
  .hub-tile__hook { display: block; font-size: .95rem; line-height: 1.45; color: var(--muted); }
}
/* FIX-10 (page walk): three across from 960px (was 1100), so a laptop at 1024 sets the groups three to a row as 1440
   does instead of two to a row with a lone tile under Writing, Images and Agents. The grid runs six tracks, a tile
   taking two; when a group's last row holds two tiles (Video, Agents), the pair takes three tracks each and fills the
   row. */
@media (min-width: 960px) {
  .hub-tiles__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hub-tiles__grid > li { grid-column: span 2; }
  .hub-tiles__grid > li:nth-child(3n + 1):nth-last-child(2), .hub-tiles__grid > li:nth-child(3n + 1):nth-last-child(2) + li { grid-column: span 3; }
}

/* Build three U26 (specs/compare.md section 3): on the four pages that carry their Alternatives lines, the other tool's
   stay card sits under "Why look for a … alternative?", headed with its own title. */
.rv-switch__stay { margin-top: 18px; max-width: 72ch; }
.rv-switch__stay h3 { margin: 0 0 8px; font-size: 1.1rem; }
/* The stay card cites deep pages (promptwatch.com/docs/…); the address breaks instead of pushing a phone sideways,
   as .rv-fit .card p does. */
.rv-switch__stay p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }

/* The closing line never breaks inside "On-brand" (judge pass, 2026-11-09): the two lines balance instead. */
.band.close h2 { text-wrap: balance; }

/* ---------- The comparison pages' one shape (design audit U25, specs/versus-template.md). Every rule below hangs on an
   `rv-` class only the twenty-five comparison pages print (lib/site/parts/rival.ts), so the hubs, research, tools and
   templates pages that load this sheet do not move. ---------- */

/* 1. The opening (round two, specs/compare-opening.md): the shared open hero at the sub size (sections.css owns it), then
   the two reasons on the page's ground, side by side at equal weight, the other tool's first; one column under 861px,
   where the hero stacks too, so the other tool's reason is the first thing under the picture's words. The band sits
   close to the chapters under it. */
.band.rv-reasons { padding-block: clamp(36px, 5vw, 64px) 0; }
.rv-reasons__two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.rv-reason { min-width: 0; padding-top: 18px; border-top: 2px solid var(--fg); }
.rv-reason .label { margin: 0 0 10px; }
.rv-reason h2 { margin: 0 0 12px; font-size: clamp(1.45rem, 2.1vw, 1.8rem); line-height: 1.15; text-wrap: balance; }
.rv-reason p:last-child { max-width: 46ch; margin: 0; overflow-wrap: anywhere; }
.rv-reason a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.rv-reason p a:not([class])::after { content: none; }
@media (max-width: 860px) {
  .rv-reasons__two { grid-template-columns: minmax(0, 1fr); }
}

/* 2. The first chapter: the other tool's words on the left (7 of 12), the sources card on the right (5 of 12). */
.rv-first__grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.rv-first__copy > :last-child { margin-bottom: 0; }
.rv-sources { margin: 0; background: #fff; }
.rv-sources .label { margin: 0 0 12px; }
.rv-sources__list { list-style: none; margin: 0; padding: 0; }
.rv-sources__list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 10px 0; border-top: 1px solid var(--rule); }
.rv-sources__name { font-weight: 600; overflow-wrap: anywhere; }
.rv-sources__date { font-family: var(--ui); font-size: .9rem; color: var(--muted); white-space: nowrap; }
.rv-sources__foot { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); font-size: .95rem; color: var(--muted); }
@media (min-width: 900px) {
  .rv-first__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  .rv-sources { margin-top: 6px; }
}

/* 3. Jinn's chapter: its crew member at working size under the copy (about 160px tall; 120px on a phone). */
.rv-chapters .said-by { grid-template-columns: 136px 1fr; gap: 18px; margin-top: 22px; }
.rv-chapters .said-by .uwee { width: 136px; height: 160px; }
@media (max-width: 860px) {
  .rv-chapters .said-by { grid-template-columns: 102px 1fr; }
  .rv-chapters .said-by .uwee { width: 102px; height: 120px; }
}

/* 4. The table as paired cards at every width (build six G1-U3; Sarah's preview row BFfFpzAFEExc asked the secondary
   pages for more to look at): each row is one card, the row's question as its head, then the other tool's answer and
   Jinn's side by side, each under its column label (the cell's data-th, as the phone cards always printed it). Both
   answers in one weight and size, the other tool's first; no accent on either side. Two rules only: the card's own
   border and a hairline between the two answers; the head sits on space, not on a rule.
   Safari/VoiceOver drops table semantics when the table element itself is restyled, so the table stays display: table
   and only its body rows lay out as grids; the column heads stay in the accessibility tree, clipped to nothing, instead
   of site.css's display: none. Under 520px the two answers stack inside the card, a hairline between them. */
.rv-chapters table.plain.crossing.rival { display: table; }
.rv-chapters table.plain.crossing.rival thead { display: table-header-group; }
.rv-chapters table.plain.crossing.rival thead th { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.rv-chapters table.plain.crossing.rival tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 0 0 12px; padding: 0; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.rv-chapters table.plain.crossing.rival tbody tr:last-child { margin-bottom: 0; }
.rv-chapters table.plain.crossing.rival tbody td, .rv-chapters table.plain.crossing.rival tbody th { display: block; min-width: 0; margin: 14px 0 18px; padding: 0 22px; border: 0; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.rv-chapters table.plain.crossing.rival td:nth-child(2) { font-weight: inherit; }
/* the head: the row's question across the card */
.rv-chapters table.plain.crossing.rival tbody td:nth-child(1),
.rv-chapters table.plain.crossing.rival tr.cmp-not-row th { grid-column: 1 / -1; margin: 0; padding: 18px 22px 0; font-family: var(--head); font-size: 1.1rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.rv-chapters table.plain.crossing.rival tbody td:nth-child(1)::before { display: none; }
/* the pair: each answer under its column label */
.rv-chapters table.plain.crossing.rival tbody td:nth-child(3) { border-left: 1px solid var(--rule); }
.rv-chapters table.plain.crossing.rival tbody td[data-th]:nth-child(2)::before,
.rv-chapters table.plain.crossing.rival tbody td[data-th]:nth-child(3)::before { content: attr(data-th); display: block; margin: 0 0 6px; font-family: var(--ui); font-size: .8rem; font-weight: 600; line-height: 1.35; color: var(--muted); }
@media (max-width: 520px) {
  .rv-chapters table.plain.crossing.rival tbody tr { grid-template-columns: minmax(0, 1fr); }
  .rv-chapters table.plain.crossing.rival tbody td, .rv-chapters table.plain.crossing.rival tbody th { margin: 10px 0 14px; padding: 0 16px; font-size: .95rem; }
  .rv-chapters table.plain.crossing.rival tbody td:nth-child(1),
  .rv-chapters table.plain.crossing.rival tr.cmp-not-row th { margin: 0; padding: 16px 16px 0; font-size: 1.05rem; }
  .rv-chapters table.plain.crossing.rival tbody td:nth-child(3) { margin-top: 0; padding-top: 12px; border-left: 0; border-top: 1px solid var(--rule); }
}

/* 5. Build three U26 (specs/compare.md section 2): the table's last two rows and the link under it. The price row reads
   like every row above it. "What Jinn does not do" is a card a step quieter: no fill, its one answer across the card,
   no column label, no icon. The link is the arrow text link, never a second button. */
.rv-chapters table.plain.crossing.rival tr.cmp-not-row { background: transparent; }
.rv-chapters table.plain.crossing.rival td.cmp-not { grid-column: 1 / -1; font-size: .92rem; color: var(--muted); white-space: normal; }
.rv-chapters table.plain.crossing.rival td.cmp-not::before { display: none; }
.rv-chapters .cmp-next { margin: 18px 0 0; }

/* 6. The ending on navy: the heading, the two cards (the other tool's first) in the dark card style, the page's link, then
   the closing line and one Let's Talk. */
.rv-fit h2 { margin: 0 0 clamp(18px, 2.4vw, 28px); color: var(--fg); }
.rv-fit .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); align-items: stretch; }
.rv-fit .card { min-width: 0; }
.rv-fit .card p { max-width: none; overflow-wrap: anywhere; }
.rv-fit .card p:last-child { margin-bottom: 0; color: var(--muted); }
.rv-fit .card b { color: var(--fg); font-family: var(--head); font-size: 1.1rem; }
.rv-fit__link { margin: 18px 0 0; }
.rv-fit__link a { color: var(--fg); }
.rv-fit__close { margin-top: clamp(32px, 4vw, 52px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--rule); }
.rv-fit__close .lede { margin: 0 0 18px; color: var(--fg); }
@media (max-width: 860px) {
  .rv-fit .two { grid-template-columns: minmax(0, 1fr); }
}

/* FIX-10 (page walk), the Visibility rival pages' "What does Jinn do differently?" chapter (#check): the readout
   picture (1172px wide, a dashboard of small type) sat in the narrow right column at about 517px, so its words read at
   about 6px. From 861px up the chapter runs as one column: the words first, at the width they had, then the picture
   across the full row, never wider than its own file, so its words read at close to their true size. Keyed on the
   picture, so a rival page with another picture keeps its two columns. */
@media (min-width: 861px) {
  .chapter#check .two--check:has(img[src$="/olipop-ai-visibility-answers-report.webp"]) { grid-template-columns: minmax(0, 1fr); row-gap: clamp(24px, 3vw, 36px); }
  .chapter#check .two--check:has(img[src$="/olipop-ai-visibility-answers-report.webp"]) > div { max-width: 680px; }
  .chapter#check .two--check:has(img[src$="/olipop-ai-visibility-answers-report.webp"]) > figure.shot { width: 100%; max-width: 1180px; }
}

/* 7. Fix pass F1 (Dan, 2026-11-16): a compare page's cross-links, the chapters band's last item, under the term row and
   laid out like it: the label, then one wrapping row of plain text links (the other pages of the feature, then "Every
   comparison"). The page's own ground, ink and type; no chip, no card, no picture. */
.rv-chapters .rv-more { margin-top: 32px; }
.rv-chapters .rv-more .label { margin: 0 0 10px; }
.rv-chapters .rv-more__list { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.rv-chapters .rv-more__list li { margin: 0; }
.rv-chapters .rv-more a { font-family: var(--ui); font-size: .92rem; text-underline-offset: 3px; }
.rv-chapters .rv-more p.rv-more__every { margin: 0; }
