/* RECATOOLS tool pattern — rtp-mcmp: method comparison table.
 *
 * OPT-IN. A widget links this file; no existing page is changed by it.
 * For a tool that computes one answer several published ways and wants to
 * show them side by side against a reference: one row per method, the method
 * the tool uses highlighted, the reference row set apart, signed differences
 * in tabular numerals. Presentation only — no maths lives here.
 * Documented in docs/tool-design-patterns.md. First used by
 * /dew-point-calculator/ (wave 212).
 *
 * Markup:
 *   <div class="rtp-mcmp">
 *     <table class="rtp-mcmp-table">
 *       <caption class="rtp-mcmp-caption">…</caption>
 *       <thead><tr><th scope="col">Method</th><th scope="col" class="rtp-mcmp-num">Result</th>…</tr></thead>
 *       <tbody>
 *         <tr class="rtp-mcmp-ref"><th scope="row">Reference</th><td class="rtp-mcmp-num">…</td></tr>
 *         <tr class="rtp-mcmp-used"><th scope="row">Method in use <span class="rtp-mcmp-tag">this tool</span></th>…</tr>
 *         <tr><th scope="row">Other method</th>…</tr>
 *       </tbody>
 *     </table>
 *     <p class="rtp-mcmp-foot">…</p>
 *   </div>
 *
 * Colours are theme tokens only (public/assets/css/rt-tokens.css), so dark
 * mode follows the site theme. Text sits on --rt-surface / --rt-bg-inset,
 * never on the navy result ground (docs/contrast-conventions.md).
 */
.rtp-mcmp { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rt-hairline, #E6E1D4); border-radius: 8px; background: var(--rt-surface, #fff); }
.rtp-mcmp-table { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--rt-ink-soft, #2A3340); }
.rtp-mcmp-caption { caption-side: top; text-align: left; padding: 12px 14px 8px; font-family: var(--rt-font-mono, monospace); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--rt-ink-muted, #5C646F); }
.rtp-mcmp-table th, .rtp-mcmp-table td { padding: 9px 14px; text-align: left; border-top: 1px solid var(--rt-hairline, #E6E1D4); vertical-align: baseline; }
.rtp-mcmp-table thead th { font-family: var(--rt-font-mono, monospace); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--rt-ink-muted, #5C646F); border-top: 0; white-space: nowrap; }
.rtp-mcmp-table tbody th { font-weight: 600; color: var(--rt-ink, #0D1B2A); }
.rtp-mcmp-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; font-family: var(--rt-font-mono, monospace); }
.rtp-mcmp-sub { display: block; font-weight: 400; font-size: 12px; color: var(--rt-ink-muted, #5C646F); }
.rtp-mcmp-ref { background: var(--rt-bg-inset, #EFEBE1); }
.rtp-mcmp-ref th { font-style: italic; }
.rtp-mcmp-used { box-shadow: inset 3px 0 0 var(--rt-accent, #E8622A); background: var(--rt-accent-soft, rgba(232, 98, 42, .10)); }
.rtp-mcmp-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-family: var(--rt-font-mono, monospace); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--rt-accent-text, #AE3F10); border: 1px solid currentColor; vertical-align: 1px; }
.rtp-mcmp-foot { margin: 0; padding: 10px 14px 12px; font-size: 13px; line-height: 1.5; color: var(--rt-ink-soft, #2A3340); border-top: 1px solid var(--rt-hairline, #E6E1D4); }
@media (max-width: 540px) { .rtp-mcmp-table th, .rtp-mcmp-table td { padding: 8px 10px; } .rtp-mcmp-table { font-size: 13px; } }
