/* Extra components for product pages on the Steelreed site system.
   Loaded after sr.css. Uses only sr.css tokens; scoped to .page-qf or to its own component classes. */

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* product accent on code tabs */
.page-qf .tabs button[aria-selected="true"] { border-bottom-color: color-mix(in srgb, var(--qf) 70%, var(--term-ink)); }

/* hero */
.page-qf .hero h1 code { font-family: var(--mono); font-size: .86em; font-weight: 500; letter-spacing: -.04em; color: var(--qf); }
.term.inst { margin-top: 28px; display: flex; align-items: center; gap: 8px; padding-right: 10px; max-width: 520px; }
.term.inst pre { flex: 1; min-width: 0; padding: 12px 16px; font-size: 13px; }
.term pre.log { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.7; }

/* numbered steps */
.steps { counter-reset: step; display: grid; gap: 18px; margin-top: 4px; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; color: var(--ink-2); font-size: 16px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--qf) 35%, transparent); border-radius: 8px; background: var(--qf-soft); color: var(--qf); font: 500 13px var(--mono); }
.steps b { color: var(--ink); font-weight: 600; }

/* rule list, on top of .feed */
@media (min-width: 720px) { .feed.rules li { grid-template-columns: 240px 1fr; } }
.feed.rules .what b { font-size: 15px; font-weight: 600; line-height: 1.35; }
.feed.rules .msg { padding: 8px 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); }
.vc { display: block; font: 600 12px/1.6 var(--mono); color: var(--bad); letter-spacing: .02em; white-space: nowrap; } /* status word: coloured text, no box (DESIGN-SYSTEM Labels) */
.page-qf .foot { margin-top: 20px; font-size: 15px; color: var(--ink-2); }
.page-qf .foot a, .page-qf .end p a, .page-qf .dog .more { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* dogfood */
.dog { display: grid; gap: 14px; align-content: start; min-width: 0; }
.dog pre { font-size: 12.5px; }
.dog p { color: var(--ink-2); }
.dog .more { justify-self: start; font-weight: 500; }

/* scope cards */
.scope { margin-top: 48px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.scope .plan ul { padding-top: 0; border-top: 0; }
.scope .plan h3 { color: var(--ink); font-weight: 600; }

/* comparison table */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.cmp { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp thead th { font: 500 12px var(--mono); color: var(--mute); background: var(--bg); white-space: nowrap; }
.cmp tbody th { font-weight: 600; color: var(--ink); width: 22%; }
.cmp td { color: var(--ink-2); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tr.me th, .cmp tr.me td { background: var(--qf-soft); color: var(--ink); }
.cmp tr.me th { color: var(--qf); }

/* closing call to action */
.page-qf .end h2 { font-size: clamp(28px, 3.4vw, 40px); }
.page-qf .end p { margin-top: 14px; max-width: 60ch; font-size: 17px; color: var(--ink-2); }
.page-qf .end .cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.term pre.log .f { display: block; padding-left: 14ch; text-indent: -14ch; }
.term.inst pre { white-space: pre-wrap; }
.page-qf .hero > div > .tag { white-space: normal; }
