/* Report body shared by the agency workspace and the client report (screen, dark and print).
   Uses the host page's tokens: --paper --mist --ink --ink-2 --muted --line --marker --marker-ink --you --them --ci --link.
   The marker stays behind text. No shadows, no gradients. */

.rv { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 56px); min-width: 0; }
.rv * { min-width: 0; }
.rv .mono, .rv-tile-value, .rv-pct, .rv-why-val, .rv-rank-val, .rv-rank-n, .rv-qrow-count, .rv-act-n { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.rv-muted { color: var(--muted); }
.rv .small, .rv-muted.small { font-size: 13px; }
.print-only { display: none; }

/* Sections and cards */
.rv-section { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 96px; }
.rv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; }
.rv-head-text { display: flex; flex-direction: column; gap: 4px; max-width: 72ch; }
.rv-h2 { font-size: 22px; font-weight: 750; line-height: 1.2; letter-spacing: -0.02em; }
.rv-sub { font-size: 14px; line-height: 1.5; color: var(--muted); }
.rv-card { border: 1px solid var(--line); border-radius: 14px; padding: clamp(16px, 2.2vw, 22px); background: var(--paper); display: flex; flex-direction: column; gap: 12px; }
.rv-card-title { font-size: 15px; font-weight: 700; }
.rv-card-sub { font-size: 13px; color: var(--muted); margin-top: -8px; line-height: 1.45; }
.rv-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rv-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }

/* Chips, buttons, links */
.rv-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rv-chip { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; white-space: nowrap; line-height: 1.6; }
.rv-chip b { font-weight: 600; color: var(--ink); }
.rv-chip.marker { background: var(--marker); color: var(--marker-ink); border-color: var(--marker); font-weight: 500; }
.rv-chip.ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--ink); background: var(--marker); color: var(--marker-ink); font: inherit; font-size: 14px; font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap; }
.rv-btn.ghost { background: transparent; color: var(--ink); }
.rv-btn.small { min-height: 36px; padding: 0 12px; font-size: 13px; align-self: flex-start; }
.rv-btn:disabled { opacity: 0.6; cursor: default; }
.rv-link, .rv-toggle { background: none; border: 0; padding: 8px 2px; min-height: 36px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); cursor: pointer; align-self: flex-start; }
.rv-link:hover, .rv-toggle:hover { color: var(--ink); text-decoration-color: var(--ink); }
.rv-toggle { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.rv-toggle::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.rv-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.rv-close { width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; }
.rv-close:hover { background: var(--paper); color: var(--ink); }

/* Status glyphs */
.st { display: inline-block; width: 1.1em; text-align: center; font-weight: 700; }
.st.yes { color: var(--ink); }
.st.cond { color: var(--ink-2); }
.st.meh, .st.no { color: var(--muted); }

/* ------------------------------------------------ 1. summary */
.rv-sum-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.rv-sum-main { gap: 18px; padding: clamp(18px, 2.6vw, 28px); }
.rv-sum-side { display: flex; flex-direction: column; gap: 16px; }
.rv-headline { font-size: clamp(22px, 2.6vw, 28px); font-weight: 750; line-height: 1.2; letter-spacing: -0.025em; text-wrap: balance; }
.rv-gauge { display: flex; flex-direction: column; gap: 8px; }
.rv-gauge-num { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rv-pct { font-size: clamp(44px, 6vw, 60px); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.rv-range { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.rv-scale { position: relative; height: 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); margin-top: 8px; }
.rv-scale-ci { position: absolute; top: 0; bottom: 0; background: var(--ci); border-radius: 999px; }
.rv-scale-you, .rv-scale-rival { position: absolute; top: 50%; transform: translate(-50%, -50%); border-radius: 2px; }
.rv-scale-you { width: 5px; height: 26px; background: var(--you); }
.rv-scale-rival { width: 4px; height: 20px; background: var(--them); }
.rv-scale-axis { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.rv-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; color: var(--ink-2); }
.rv-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: 6px; }
.rv-key:first-child { margin-left: 0; }
.rv-key.you { background: var(--you); }
.rv-key.rival { background: var(--them); }
.rv-key.ci { background: var(--ci); border: 1px solid var(--line); }
.rv-diagnosis { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.rv-diagnosis p { font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 70ch; }
.rv-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rv-tile { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; background: var(--paper); }
a.rv-tile:hover { border-color: var(--ink); }
.rv-tile-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rv-tile-value { font-size: 28px; font-weight: 600; line-height: 1.15; }
.rv-tile-value.name { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 5px 0 3px; }
.rv-tile-note { font-size: 13px; line-height: 1.4; color: var(--muted); }
.rv-topfix { gap: 10px; flex: 1; }
.rv-topfix ol { margin: 0; padding: 0; list-style: none; counter-reset: fix; display: flex; flex-direction: column; gap: 10px; }
.rv-topfix li { counter-increment: fix; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 8px; font-size: 15px; line-height: 1.35; }
.rv-topfix li::before { content: counter(fix); font-family: var(--font-mono); font-size: 13px; color: var(--muted); padding-top: 1px; grid-row: span 2; }
.rv-topfix a { color: var(--ink); font-weight: 600; text-decoration: none; }
.rv-topfix a:hover { text-decoration: underline; }

/* ------------------------------------------------ 2. question map */
.rv-qmap { display: flex; flex-direction: column; gap: 12px; }
.rv-qrow { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 8px 16px; align-items: center; }
.rv-qrow-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; }
.rv-qrow-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-qrow-count { font-size: 13px; color: var(--muted); flex: none; }
.rv-tiles-row { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-q { width: 34px; height: 34px; border-radius: 7px; border: 1px solid transparent; display: inline-grid; place-items: center; padding: 0; font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.02em; cursor: pointer; }
i.rv-q { width: 14px; height: 14px; border-radius: 4px; display: inline-block; cursor: default; vertical-align: -2px; margin-right: 6px; }
.rv-q.q-first { background: var(--you); color: var(--paper); box-shadow: inset 0 -5px 0 var(--marker); }
i.rv-q.q-first { box-shadow: inset 0 -3px 0 var(--marker); }
.rv-q.q-yes { background: var(--you); color: var(--paper); }
.rv-q.q-cond { background: var(--paper); border: 2px solid var(--you); color: var(--ink); }
.rv-q.q-meh { background: var(--mist); border: 1px dashed var(--muted); color: var(--muted); }
.rv-q.q-no { background: var(--mist); border-color: var(--line); color: var(--muted); }
button.rv-q:hover { outline: 2px solid var(--ink-2); outline-offset: 1px; }
button.rv-q[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.rv-qlegend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 12px; }
.rv-qlegend span { display: inline-flex; align-items: center; }
.rv-langs { font-size: 13px; color: var(--ink-2); }
.rv-qdetail { background: var(--mist); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.rv-qdetail-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rv-qtext { font-size: 17px; font-weight: 650; line-height: 1.35; }
.rv-qstatus { font-size: 14px; color: var(--ink-2); }
.rv-qpicks { display: flex; flex-direction: column; gap: 4px; }
.rv-qpicks ol { margin: 0; padding-left: 20px; font-size: 14px; }
.rv-qanswer:empty { display: none; }
.rv-qanswer { display: flex; flex-direction: column; gap: 10px; }
.rv-qanswer .quote { background: var(--paper); }

/* ------------------------------------------------ AI answer quotes */
.quote { background: var(--mist); border-radius: 14px; padding: clamp(14px, 2vw, 22px); display: flex; flex-direction: column; gap: 10px; margin: 0; }
.quote-q { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.quote-body { font-family: var(--font-quote); font-style: italic; font-size: 17px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.quote-body:not(.full) { max-height: 15em; overflow: hidden; }
.quote-body > * + * { margin-top: 0.6em; }
.quote-body h4 { font-family: var(--font-display); font-style: normal; font-size: 15px; font-weight: 700; letter-spacing: 0; }
.quote-body ul, .quote-body ol { padding-left: 1.3em; margin: 0; }
.quote-body li + li { margin-top: 0.3em; }
.quote-body p { margin: 0; }
.quote-body hr { border: 0; border-top: 1px solid var(--line); }
.quote-body strong { font-weight: 600; }
.quote-body .mark { font-style: normal; font-family: var(--font-display); font-weight: 700; font-size: 0.88em; }
.quote-body table { border-collapse: collapse; font-size: 14px; font-style: normal; font-family: var(--font-display); width: 100%; display: block; overflow-x: auto; }
.quote-body td, .quote-body th { border-bottom: 1px solid var(--line); padding: 6px 10px 6px 0; text-align: left; vertical-align: top; }
.cite { font-family: var(--font-mono); font-style: normal; font-size: 11px; color: var(--muted); background: var(--paper); border-radius: 999px; padding: 1px 8px; white-space: nowrap; text-decoration: none; }
.quote-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.quote-foot .rv-chip { text-transform: none; letter-spacing: 0; font-family: var(--font-display); font-size: 12px; background: var(--paper); border-color: transparent; white-space: normal; }

/* ------------------------------------------------ 3. competitors and reasons */
.rv-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rv-rank li { display: grid; grid-template-columns: 18px minmax(0, 150px) minmax(0, 1fr) 76px; gap: 10px; align-items: center; font-size: 14px; }
.rv-rank-n { font-size: 12px; color: var(--muted); }
.rv-rank-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-rank li.you .rv-rank-name { font-weight: 700; overflow: visible; white-space: normal; }
.rv-bar { position: relative; height: 12px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.rv-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--them); border-radius: 999px; }
.rv-rank li.you .rv-bar-fill { background: var(--you); }
.rv-bar-ci { position: absolute; top: 0; bottom: 0; background: var(--ci); border-radius: 999px; }
.rv-rank-val { text-align: right; font-size: 13px; white-space: nowrap; }
.rv-rank-val small { color: var(--muted); font-size: 11px; }
.rv-why { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rv-why li { display: flex; flex-direction: column; gap: 5px; }
.rv-why-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.rv-why-label { font-weight: 600; }
.rv-why-val { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.rv-why-quote { font-family: var(--font-quote); font-style: italic; font-size: 14px; line-height: 1.4; color: var(--muted); }
.rv-why-quote span { font-family: var(--font-display); font-style: normal; font-size: 12px; }
.rv-meter { display: block; height: 8px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.rv-meter i { display: block; height: 100%; border-radius: 999px; background: var(--them); }
.rv-meter.dark i { background: var(--ink-2); }
.rv-meter.you i { background: var(--you); }

/* ------------------------------------------------ 4. action plan */
.rv-plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; align-items: start; }
.rv-plan-grid > .rv-matrix { position: sticky; top: 96px; }
.rv-acts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rv-act { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: var(--paper); scroll-margin-top: 96px; }
.rv-act:target { border-color: var(--ink); }
.rv-act-main { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; }
.rv-act-n { width: 30px; height: 30px; border-radius: 999px; border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.rv-act-body { display: flex; flex-direction: column; gap: 8px; }
.rv-act-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-act-title { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; }
.rv-act-why { font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 75ch; }
.rv-proof { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 14px; line-height: 1.45; }
.rv-proof q, .rv-proofs q { background: var(--mist); border-radius: 6px; padding: 2px 8px; quotes: "“" "”"; }
.rv-src { font-family: var(--font-mono); font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
a.rv-src { color: var(--link); }
.rv-act-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-top: 2px; }
.rv-affects { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.rv-affects .rv-meter { width: 72px; flex: none; }
.rv-act-actions { display: inline-flex; align-items: center; gap: 14px; }
.rv-done { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); cursor: pointer; min-height: 36px; }
.rv-done input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.rv-act.done { background: var(--mist); }
.rv-act.done .rv-act-title { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--muted); }
.rv-act.done .rv-act-n { background: var(--ink); color: var(--paper); }
.rv-act-more { margin: 16px 0 0 44px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.rv-act-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 16px; }
.rv-act-row dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.rv-act-row dd { margin: 0; font-size: 15px; line-height: 1.5; }
.rv-act-row ol, .rv-act-row ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.rv-proofs { list-style: none; padding-left: 0 !important; gap: 8px !important; }
.rv-proofs li { font-size: 14px; }
.rv-matrix { gap: 10px; }
.rv-mx { display: grid; grid-template-columns: 62px repeat(3, minmax(0, 1fr)); gap: 4px; }
.rv-mx-col { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); text-align: center; padding-bottom: 2px; line-height: 1.25; }
.rv-mx-row { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; line-height: 1.2; }
.rv-mx-cell { border: 1px solid var(--line); border-radius: 8px; padding: 6px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px; }
.rv-mx-cell.quick, .rv-mx-swatch { background: var(--mist); border-color: var(--ink-2); border-style: dashed; }
.rv-mx-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border-width: 1px; vertical-align: -2px; margin-right: 6px; }
.rv-mx-dot { width: 24px; height: 24px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; font-weight: 600; text-decoration: none; }
.rv-mx-dot.hi { background: var(--ink); color: var(--paper); }
.rv-mx-dot:hover { outline: 2px solid var(--ink); outline-offset: 1px; }
.rv-already { display: flex; flex-direction: column; gap: 6px; }
.rv-already-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--ink-2); }
.rv-pending { background: var(--mist); border-color: var(--mist); }
.rv-pending p { font-size: 15px; color: var(--ink-2); }

/* ------------------------------------------------ 5. sources */
.rv-mixbar { display: flex; height: 16px; border-radius: 999px; overflow: hidden; gap: 2px; background: var(--paper); border: 1px solid var(--line); padding: 1px; }
.rv-mixbar span { display: block; height: 100%; min-width: 3px; }
.rv-mixkey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.rv-mixkey li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 14px; }
.rv-mixkey i { width: 10px; height: 10px; border-radius: 2px; border: 1px solid var(--line); }
.rv-mixkey b { font-weight: 500; font-size: 13px; }
.rv-sitecheck ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rv-sitecheck li { display: grid; grid-template-columns: minmax(0, 1fr) 88px 104px; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.rv-sitecheck li:first-child { border-top: 0; padding-top: 0; }
.rv-site { display: flex; flex-direction: column; gap: 1px; }
.rv-site a, .rv-site > span:first-child { font-weight: 600; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-site a:hover { text-decoration: underline; }
.rv-type { font-size: 12px; color: var(--muted); }
.rv-site-count { display: grid; grid-template-columns: minmax(0, 1fr) 26px; gap: 8px; align-items: center; font-size: 13px; text-align: right; }
.rv-state { font-size: 13px; white-space: nowrap; }
.rv-state.yes { font-weight: 650; color: var(--ink); }
.rv-state.no { color: var(--ink-2); }
.rv-state.muted { color: var(--muted); }
.rv-state.own { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.rv-all > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); min-height: 40px; display: inline-flex; align-items: center; gap: 8px; list-style: none; }
.rv-all > summary::-webkit-details-marker { display: none; }
.rv-all > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.rv-all[open] > summary::before { transform: rotate(45deg); }
.rv-all[open] { display: flex; flex-direction: column; gap: 10px; }
.rv-table-wrap { overflow-x: auto; }
.rv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rv-table th { text-align: left; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding: 0 12px 8px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.rv-table td { padding: 9px 12px 9px 0; border-top: 1px solid var(--line); vertical-align: top; }
.rv-table td.n { font-family: var(--font-mono); font-size: 13px; width: 1%; white-space: nowrap; }

/* ------------------------------------------------ 6. answers */
.rv-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.rv-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 14px; font-weight: 500; cursor: pointer; }
.rv-pill .mono { font-size: 12px; color: var(--muted); }
.rv-pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.rv-pill[aria-pressed="true"] .mono { color: inherit; opacity: 0.75; }
.rv-answers { list-style: none; margin: 0; padding: 0; }
.rv-answers > li { border-top: 1px solid var(--line); }
.rv-answers > li:last-child { border-bottom: 1px solid var(--line); }
.rv-a-row { width: 100%; display: grid; grid-template-columns: 20px 30px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 12px 4px; border: 0; background: none; text-align: left; cursor: pointer; font-size: 15px; line-height: 1.4; }
.rv-a-row:hover { background: var(--mist); }
.rv-lang { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--muted); }
.rv-pos { font-size: 13px; color: var(--muted); white-space: nowrap; }
.rv-pos .mark { font-weight: 700; color: var(--marker-ink); }
.rv-a-open { padding: 2px 0 18px 64px; display: flex; flex-direction: column; gap: 10px; }

/* ------------------------------------------------ 7. method */
.rv-method { margin: 0; padding: 18px 20px 18px 38px; background: var(--mist); border-radius: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* ------------------------------------------------ responsive */
@media (max-width: 960px) {
  .rv-sum-grid, .rv-split, .rv-plan-grid { grid-template-columns: minmax(0, 1fr); }
  .rv-plan-grid > .rv-matrix { position: static; order: -1; }
}
@media (max-width: 640px) {
  .rv-tiles { gap: 8px; }
  .rv-tile { padding: 12px; }
  .rv-tile-value { font-size: 24px; }
  .rv-qrow { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .rv-rank li { grid-template-columns: 14px minmax(0, 1fr) 64px; row-gap: 4px; }
  .rv-rank li .rv-bar { grid-column: 2 / 4; grid-row: 2; }
  .rv-act { padding: 16px; }
  .rv-act-main { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rv-act-more { margin-left: 0; }
  .rv-act-row { grid-template-columns: minmax(0, 1fr); }
  .rv-sitecheck li { grid-template-columns: minmax(0, 1fr) auto; }
  .rv-site-count { display: none; }
  .rv-mixkey { grid-template-columns: minmax(0, 1fr); }
  .rv-a-row { grid-template-columns: 20px minmax(0, 1fr); row-gap: 4px; }
  .rv-a-row .rv-lang { display: none; }
  .rv-a-row .rv-pos { grid-column: 2; white-space: normal; }
  .rv-a-open { padding-left: 0; }
  .rv-table .hide-s { display: none; }
  .rv-method { padding-left: 30px; }
}

/* ------------------------------------------------ print (US Letter / A4) */
@media print {
  .no-print, .screen-only, .rv-qdetail, .rv-all, .rv-toggle, .rv-done, .rv-link { display: none !important; }
  .print-only { display: block !important; }
  .rv { gap: 14pt; }
  .rv-section { gap: 7pt; break-inside: auto; }
  .rv-head { break-after: avoid; }
  .rv-h2 { font-size: 13pt; }
  .rv-sub { font-size: 8.5pt; }
  .rv-card { border: 0.75pt solid var(--line); border-radius: 6pt; padding: 8pt 10pt; gap: 6pt; break-inside: avoid; }
  .rv-card-title { font-size: 9.5pt; }
  .rv-card-sub { font-size: 8pt; margin-top: -4pt; }
  .rv-eyebrow, .rv-tile-label { font-size: 7pt; }
  .rv-chip { font-size: 7pt; padding: 0 4pt; }
  .rv-sum-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 8pt; break-inside: avoid; }
  .rv-sum-main { padding: 10pt 12pt; gap: 8pt; }
  .rv-sum-side { gap: 8pt; }
  .rv-headline { font-size: 14pt; }
  .rv-pct { font-size: 30pt; }
  .rv-range { font-size: 8.5pt; }
  .rv-scale { height: 9pt; margin-top: 2pt; }
  .rv-scale-you { height: 16pt; width: 3pt; }
  .rv-scale-rival { height: 12pt; width: 2.5pt; }
  .rv-scale-axis, .rv-legend { font-size: 7.5pt; }
  .rv-diagnosis { padding-top: 7pt; }
  .rv-diagnosis p { font-size: 8.5pt; line-height: 1.4; }
  .rv-tiles { gap: 6pt; }
  .rv-tile { padding: 6pt 8pt; border-radius: 5pt; border-width: 0.75pt; }
  .rv-tile-value { font-size: 16pt; }
  .rv-tile-value.name { font-size: 10.5pt; padding: 2pt 0 1pt; }
  .rv-tile-note { font-size: 7.5pt; }
  .rv-topfix li { font-size: 8.5pt; }
  .rv-topfix a { color: var(--ink); }
  .rv-qmap { gap: 6pt; }
  .rv-qrow { grid-template-columns: 130pt minmax(0, 1fr); gap: 4pt 8pt; break-inside: avoid; }
  .rv-qrow-label { font-size: 8.5pt; }
  .rv-q { width: 20pt; height: 20pt; border-radius: 4pt; font-size: 6pt; }
  .rv-qlegend, .rv-langs { font-size: 7.5pt; padding-top: 5pt; }
  .rv-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8pt; }
  .rv-rank { gap: 5pt; }
  .rv-rank li { grid-template-columns: 10pt minmax(0, 100pt) minmax(0, 1fr) 52pt; gap: 6pt; font-size: 8.5pt; }
  .rv-bar { height: 7pt; }
  .rv-rank-val { font-size: 8pt; }
  .rv-why { gap: 6pt; }
  .rv-why-top { font-size: 8.5pt; }
  .rv-why-val { font-size: 8pt; }
  .rv-why-quote { font-size: 8pt; }
  .rv-meter { height: 5pt; }
  .rv-plan-grid { grid-template-columns: minmax(0, 1fr); }
  .rv-plan-grid > .rv-matrix { position: static; order: -1; max-width: 260pt; }
  .rv-mx-col { font-size: 6.5pt; }
  .rv-mx-row { font-size: 7.5pt; }
  .rv-mx-cell { padding: 3pt; min-height: 24pt; }
  .rv-mx-dot { width: 15pt; height: 15pt; font-size: 7pt; }
  .rv-acts { gap: 0; }
  .rv-act { border: 0; border-top: 1pt solid var(--ink); border-radius: 0; padding: 7pt 0 5pt; background: none; break-inside: auto; }
  .rv-act-main { grid-template-columns: 18pt minmax(0, 1fr); gap: 7pt; break-inside: avoid; }
  .rv-act-n { width: 16pt; height: 16pt; font-size: 7.5pt; border-width: 1pt; }
  .rv-act-body { gap: 3pt; }
  .rv-act-title { font-size: 10.5pt; line-height: 1.25; }
  .rv-act-why, .rv-proof { font-size: 8.5pt; line-height: 1.35; }
  .rv-proof q, .rv-proofs q { padding: 0 4pt; }
  .rv-src { font-size: 7.5pt; }
  .rv-affects { font-size: 7.5pt; }
  .rv-affects .rv-meter { width: 40pt; }
  .rv-act-more, .rv-act-more[hidden] { display: flex !important; margin: 5pt 0 0 25pt; padding-top: 5pt; gap: 4pt; border-top: 0.5pt solid var(--line); }
  .rv-act-row { grid-template-columns: 70pt minmax(0, 1fr); gap: 2pt 8pt; break-inside: avoid; }
  .rv-act-row dt { font-size: 7pt; }
  .rv-act-row dd, .rv-proofs li { font-size: 8.5pt; line-height: 1.35; }
  .rv-already-head { display: block !important; font-size: 10pt; margin-top: 4pt; }
  .rv-already-list, .rv-already-list[hidden] { display: flex !important; font-size: 8.5pt; gap: 2pt; }
  .rv-mixbar { height: 9pt; }
  .rv-mixkey { gap: 3pt 10pt; }
  .rv-mixkey li { font-size: 8pt; }
  .rv-sitecheck li { grid-template-columns: minmax(0, 1fr) 60pt 64pt; padding: 3pt 0; font-size: 8.5pt; gap: 6pt; }
  .rv-site a { color: var(--ink); }
  .rv-type, .rv-state { font-size: 7.5pt; }
  .rv-table { font-size: 8pt; }
  .rv-table thead { display: table-header-group; }
  .rv-table tr { break-inside: avoid; }
  .rv-table th { font-size: 7pt; padding: 0 6pt 3pt 0; }
  .rv-table td { padding: 2.5pt 6pt 2.5pt 0; }
  .rv-table td.n { font-size: 7.5pt; }
  .rv-print-block { display: flex !important; flex-direction: column; gap: 8pt; }
  .rv-print-h3 { font-size: 10.5pt; margin-top: 4pt; break-after: avoid; }
  .quote { border: 0.75pt solid var(--line); border-radius: 6pt; padding: 7pt 10pt; gap: 4pt; background: #F4F5F7; }
  .quote-q { font-size: 8.5pt; break-after: avoid; }
  .quote-body, .quote-body:not(.full) { font-size: 9pt; line-height: 1.38; max-height: none; overflow: visible; }
  .quote-body p, .quote-body li { orphans: 3; widows: 3; break-inside: avoid; }
  .quote-foot .rv-chip { font-size: 7.5pt; border: 0.5pt solid var(--line); }
  .cite { font-size: 7pt; }
  .rv-method { font-size: 8pt; padding: 7pt 10pt 7pt 22pt; gap: 2pt; break-inside: avoid; }
  .rv a { text-decoration: none; }
}
