/* The /analysis five questions (NEV-3412; D-914-am5). Scoped to .aq; the stage is the dark River stage from
   market-river.css (loaded with it), the same in light and dark themes. Mockup: docs/mockups/analysis-fresh-look-2026-11.html. */
/* Colour (NEV-3498, founder-asked 2026-11-10): every colour here is a design-system token (docs/design-system.md, Color).
   Ground: the pinned plum (--plum-900), flat, with the 1px white edge a panel on plum takes. Fastest-growing: --ramp4, the
   magenta the ribbon pictures use (white text on it 5.19:1; 3.25:1 against the ground). Most paid: --discovery-tint
   (plum text on it 12.77:1). Highlight: the brand gradient's orange end, which has no token of its own. Sources on the
   wheel: warm stone (--n400), because a source is context, not one of the two lists. */
.aq { --aq-on: var(--n0, #FFFFFF); --aq-muted: var(--on-dark-muted, #CFC6CF); --aq-accent: var(--accent, #D33C8D);
  --aq-ground: var(--plum-900, #231A23); --aq-ink: var(--plum-900, #231A23);
  --aq-em: var(--ramp4, #BE3586); --aq-mp: var(--discovery-tint, #E6DDE9); --aq-hi: #FF7A19; --aq-src: var(--n400, #A8A29E);
  --mr-accent: var(--aq-accent); text-align: left; }
/* The River inside this section takes the same colours (its own section elsewhere keeps its own). */
.aq .mr { --mr-stage: var(--aq-ground); --mr-glow: var(--aq-ground); --mr-on: var(--aq-on); --mr-on-muted: var(--aq-muted);
  --mr-em: var(--aq-em); --mr-mp: var(--aq-mp); --mr-node: var(--aq-mp); --mr-accent: var(--aq-accent);
  /* --ramp4 is a fill colour (3.25:1 on the ground), never text: the fastest-growing heading is written in white, and the
     ribbons rest at 60% strength, not 38%, so the darker magenta shows as well as the old pink did. */
  --mr-em-ink: var(--aq-on); --mr-rib-opacity: .6; }
.aq .mr-band--em { color: var(--aq-on); }
.aq h1 { text-wrap: balance; }
.aq .reports-sub { max-width: none; }
.aq-kinds { margin: 18px 0 0; }
.aq-kinds[hidden], .aq-qs[hidden] { display: none; }
.aq-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; margin-top: 18px; align-items: start; }
.aq-qs { display: grid; gap: 8px; }
.aq-qs button { text-align: left; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .04); color: var(--aq-on);
  border-radius: 12px; padding: 14px 16px; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; }
.aq-qs button[aria-pressed="true"] { background: var(--n0, #FFFFFF); color: var(--discovery, #5B1E6D); border-color: var(--n0, #FFFFFF); }
.aq-qs button:focus-visible, .aq-kinds button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.aq-key { margin: 8px 0 0; font-size: 12px; color: var(--aq-muted); line-height: 1.9; }
.aq-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.aq-key .aq-key-em { background: var(--aq-em); }
.aq-key .aq-key-mp { background: var(--aq-mp); }
.aq-picture { position: relative; min-height: 0; background: var(--aq-ground); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); border-radius: 18px; overflow: hidden; color: var(--aq-on); }
.aq-picture[hidden] { display: none; }
.aq-svg { display: block; width: 100%; height: auto; }
.aq-say { margin: 14px 0 0; font-size: 17px; color: var(--aq-on); min-height: 2lh; }
.aq-list { margin: 10px 0 0; padding-left: 22px; columns: 2; column-gap: 28px; font-size: 13px; color: var(--aq-on); }
.aq-list li { break-inside: avoid; padding: 1px 0; }
.aq-list[hidden] { display: none; }
.aq-scale { margin: 8px 0 0; font-size: 12px; color: var(--aq-muted); }
.aq-register { margin: 10px 0 0; font-size: 13px; color: var(--aq-on); opacity: .85; }
.aq-ask { margin: 12px 0 0; }
.aq-ask a { display: inline-block; font-weight: 600; color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 8px; padding: 8px 14px; text-decoration: none; }
.aq-ask a:hover, .aq-ask a:focus-visible { border-color: #fff; }
.aq-ask [hidden] { display: none; }

/* The River as the fifth question: its own section, but only the drawing (its heads, tabs, notes and register note are this
   section's own, set under the stage once). */
.aq-flow .mr { padding: 0; }
.aq-flow .mr-bar, .aq-flow .mr-head, .aq-flow .mr-how, .aq-flow .mr-source, .aq-flow .mr-register { display: none; }
.aq-flow[hidden] { display: none; }
.aq-flow .mr-stage { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
/* With scripts off the River's lists are the section, each under its own heading. */
.aq:not(.aq-js) .aq-flow .mr-bar { display: none; }
.aq:not(.aq-js) .aq-flow .mr-head { display: block; }

/* Drawings */
.aq-svg .aq-bl { font-size: 12px; font-weight: 700; fill: var(--aq-ink); }
.aq-svg .aq-bv { font-size: 11px; fill: var(--aq-ink); opacity: .8; }
.aq-svg .aq-bn { font-size: 11px; font-weight: 700; fill: var(--aq-ink); }
/* Text on a fastest-growing mark is white (the fill is the dark one of the pair); the size under a name keeps full strength. */
.aq-svg .aq-on-em .aq-bl, .aq-svg .aq-on-em .aq-bv, .aq-svg .aq-on-em .aq-bn, .aq-svg .aq-bn.aq-on-em { fill: var(--aq-on); opacity: 1; }
.aq-svg .aq-bn--sky { fill: var(--aq-on); }
.aq-svg .aq-lead { stroke: var(--aq-muted); stroke-width: 1; fill: none; }
.aq-svg .aq-ring { fill: none; stroke: var(--aq-hi); stroke-width: 1.5; stroke-dasharray: 3 3; }
.aq-svg .aq-end { fill: var(--aq-hi); }
.aq-svg .aq-star { fill: var(--aq-on); }
.aq-svg .aq-src { fill: var(--aq-src); }
.aq-svg .aq-gx { stroke: rgba(255, 255, 255, .22); stroke-width: 1; }
.aq-svg .aq-gt { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; fill: var(--aq-muted); }
.aq-svg .aq-gt--hot { fill: var(--aq-hi); }
.aq-svg .aq-fl { font-size: 12.5px; font-weight: 600; fill: var(--aq-on); }
.aq-svg .aq-fl--top { font-size: 14px; }
.aq-svg .aq-fv { font-size: 11px; fill: var(--aq-muted); font-weight: 400; }
.aq-svg .aq-fan { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: aq-fan 1.1s ease-out forwards; }
.aq-svg .aq-hot { fill: rgba(255, 122, 25, .07); stroke: rgba(255, 122, 25, .4); stroke-dasharray: 4 4; }
.aq-svg .aq-wl { font-size: 12px; font-weight: 700; fill: var(--aq-ink); }
.aq-svg .aq-wc { font-size: 14px; font-weight: 700; fill: var(--aq-on); }
.aq-svg .aq-pop { transform-box: fill-box; transform-origin: center; animation: aq-pop .55s cubic-bezier(.2, 1.3, .4, 1) both; }
.aq-svg .aq-sweep { transform-box: view-box; transform-origin: center; animation: aq-sweep .7s ease-out both; }
@keyframes aq-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes aq-fan { to { stroke-dashoffset: 0; } }
@keyframes aq-sweep { from { transform: rotate(-40deg) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
/* A reader who has asked for reduced motion gets every drawing still (the script also sets .aq-still). */
@media (prefers-reduced-motion: reduce) {
  .aq-svg .aq-pop, .aq-svg .aq-sweep { animation: none; }
  .aq-svg .aq-fan { animation: none; stroke-dashoffset: 0; }
}
.aq-still .aq-svg .aq-pop, .aq-still .aq-svg .aq-sweep { animation: none; }
.aq-still .aq-svg .aq-fan { animation: none; stroke-dashoffset: 0; }

@media (max-width: 900px) {
  .aq-grid { grid-template-columns: 1fr; }
  .aq-qs { grid-template-columns: 1fr 1fr; }
  .aq-qs button { font-size: 14px; padding: 10px 12px; }
  .aq-key { grid-column: 1 / -1; }
}
@media (max-width: 680px) { .aq-list { columns: 1; } }
@media print {
  .aq-say, .aq-list, .aq-scale, .aq-register, .aq-ask a { color: inherit; opacity: 1; border-color: currentColor; }
}
.aq-source { margin: 4px 0 0; font-size: 13px; color: var(--aq-on); opacity: .7; }
.aq-links { margin: 12px 0 0; padding: 0; list-style: none; }
.aq-links li { margin: 0 0 8px; }
.aq-links a { display: inline-block; font-weight: 600; color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 8px; padding: 8px 14px; text-decoration: none; }
.aq-links a:hover, .aq-links a:focus-visible { border-color: #fff; }
.aq-links [hidden] { display: none; }
.aq .tour-ask { display: inline-block; margin: 4px 0 0; }
.aq .aq-kinds { display: flex; width: max-content; max-width: 100%; margin: 18px 0 0; }
.aq .aq-kinds[hidden] { display: none; }
.aq .aq-kinds button { color: var(--aq-on); }
/* The chosen kind is marked the way the chosen question is: a white ground with plum text (11.34:1). The accent set is
   kept for commerce surfaces (design-system.md, Color grammar), and white text on it is 4.37:1. */
.aq .aq-kinds button[aria-pressed="true"] { background: var(--n0, #FFFFFF); color: var(--discovery, #5B1E6D); }
@media (max-width: 680px) { .aq .aq-kinds { display: grid; width: 100%; } }
@media (max-width: 680px) { .aq-svg .aq-gt { font-size: 9px; letter-spacing: .03em; } }
