/* 4.29 — the backtest result for three readers: the sentence (newcomer), the table (trader), the math (pro) */
.rs-plain{margin:0 0 14px;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.rs-plain p{margin:6px 0 0;font-size:17px;line-height:1.85;color:var(--ink)}
.rs-plain b{font-weight:700}
.rs-prov{display:inline-block;font-size:12px;color:var(--muted);background:var(--sunk);border-radius:999px;padding:2px 10px}
.rs-wait p{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0}
.rs-bar{height:8px;border-radius:999px;background:var(--sunk);overflow:hidden;margin-top:12px}
.rs-bar i{display:block;height:100%;background:var(--acc);border-radius:inherit;transition:width .6s ease}
.rs-pro{display:flex;justify-content:flex-end;margin:6px 0 -4px}
.rs-pro .btn[aria-pressed="true"]{background:var(--acc-soft);border-color:var(--acc);color:var(--ink)}
.pf-tile .fine,.kpi .fine{display:block;font-weight:400}
@media (max-width:640px){.rs-plain p{font-size:16px}.rs-pro{justify-content:stretch}.rs-pro .btn{width:100%}}

/* 4.29 r5: «بدون عائد النقد» hides every idle-cash figure */
.nocash .cash-part{display:none!important}
/* r12: the chart and its caption follow the toggle — the method-only line and words show only when the cash yield is hidden */
.nocash-part{display:none}.nocash .nocash-part{display:inline}svg .nocash-part{display:none}.nocash svg .nocash-part{display:inline}
.ch-method{stroke:var(--ink)}
.rd-ov{white-space:nowrap}.rd-ovchip{margin:0 0 6px;padding:6px 10px;border:1px dashed var(--line);border-radius:10px}
.cost-def{display:block;font-weight:400}abbr.dash-why{text-decoration:underline dotted;cursor:help}
.rs-plain .rs-cash{margin-inline-start:8px;vertical-align:middle}
.near-small{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.linkish{background:none;border:0;padding:0;color:var(--acc);text-decoration:underline;cursor:pointer;font:inherit}
.score-list li.na{opacity:.6}

/* 4.29 r6 — plain line first, the technical line under it */
.pl-line{display:block;font-weight:600;color:var(--ink)}
.tech-line{display:block;font-size:12.5px;color:var(--muted);margin-top:2px;line-height:1.5}
.rd-plain{margin:0 0 10px;padding:10px 12px;border-radius:10px;background:var(--acc-soft);color:var(--ink);font-weight:500;line-height:1.7}
.dc .rv-tag{background:none;padding:0;border-radius:0;font-size:inherit;font-weight:600;color:var(--ink-2);margin-inline-end:4px}
.dc .rv-fix .rv-tag{color:var(--red)}
.rs-chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:6px}
.rd-miss{margin:6px 0;padding:8px 10px;border-radius:8px;background:var(--amber-soft);color:var(--ink,inherit);font-size:.92em}

/* r12 (pro): the β/α tile spans two columns and its words wrap; no tile label is ever cut with an ellipsis */
.pf-tile.wide{grid-column:span 2}.pf-tile.wide strong,.pf-tile strong .fine{white-space:normal;overflow-wrap:anywhere}
.pf-tile strong .fine{display:block;font:400 12.5px/1.45 var(--f,inherit);margin-top:2px}
.kpi span,.kpis .pf-tile span,.pf-tile>span{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.35}
@media (max-width:640px){.pf-tile.wide{grid-column:1/-1}}
.rs-cashline{display:block;margin-top:6px}.score-plain{margin:6px 0 2px;color:var(--muted);line-height:1.6}
/* r12: above the fold — the equity sparkline and the seven rules by name */
.dc-strip{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:10px 0 4px}
.dc-spark{width:240px;max-width:100%;height:56px;flex:0 0 auto}.dc-spark polyline{fill:none;stroke:var(--ink);stroke-width:1.6;vector-effect:non-scaling-stroke}
.dc-spark.down polyline{stroke:var(--red)}.dc-spark.up polyline{stroke:var(--ok)}.dc-spark-base{stroke:var(--line);stroke-width:1;vector-effect:non-scaling-stroke}
.dc-rules{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 10px;flex:1 1 260px;min-width:0}
.dc-rules li{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;padding:3px 8px;border-radius:999px;border:1px solid var(--line);background:var(--surface)}
.dc-rules li i{font-style:normal;font-weight:700}.dc-rules li.ok i{color:var(--ok)}.dc-rules li.bad i{color:var(--red)}.dc-rules li.na{opacity:.6}
@media (max-width:640px){.dc-spark{width:100%}}
.pagehead p[data-sub],.apphead p[data-sub]{margin:2px 0 4px;color:var(--muted);max-width:70ch}

/* r13 (track A): the rules that ran, under the verdict; the sparkline's start/end labels; the phone fold */
.dc-ran{margin:8px 0 2px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.dc-ran summary{cursor:pointer;padding:8px 12px;font-size:13.5px;display:flex;gap:8px;align-items:baseline;min-width:0}
.dc-ran summary::-webkit-details-marker{display:none}.dc-ran summary::marker{content:""}
.dc-ran-k{font-weight:700;white-space:nowrap}.dc-ran-l{color:var(--muted);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1 1 auto}
.dc-ran[open] .dc-ran-l{display:none}
.dc-ran-body{padding:2px 12px 10px;display:grid;grid-template-columns:max-content minmax(0,1fr);gap:4px 12px;font-size:13.5px}
.dc-ran-row{display:contents}.dc-ran-row span{color:var(--muted)}.dc-ran-row b{font-weight:600;min-width:0;overflow-wrap:anywhere}
.dc-how{margin:4px 2px 0;color:var(--muted)}.dc-how b{color:var(--ink);font-weight:600}.dc-same{margin:4px 2px 0;padding:6px 10px;border-radius:8px;background:var(--sunk)}
.dc-sparkbox{display:flex;flex-direction:column;gap:2px;flex:0 0 auto;width:240px;max-width:100%}
.dc-sparklab{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);direction:ltr}
@media (max-width:640px){
  .dc-sparkbox{width:100%}
  .pagehead .bt-meta{display:none}
  .pagehead p[data-sub]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .rs-plain{padding:12px 14px}.rs-plain p{font-size:15px;line-height:1.7}.rs-plain .rs-dd{display:none}
  .dc-head h2{font-size:1.25rem}.dc-sub{font-size:13px}
  .dc-rules{gap:4px 6px}.dc-rules li{font-size:11.5px;padding:2px 6px}
  .dc-ran summary{font-size:12.5px;padding:6px 10px;flex-wrap:wrap}.dc-ran-l{white-space:normal;overflow:visible;text-overflow:clip;flex-basis:100%}.dc-ran-body{font-size:12.5px;grid-template-columns:1fr}.dc-ran-row span{display:block;margin-top:4px}
}
/* r13 (track A): with the idle-cash tile hidden the metrics row has five tiles — no empty grey cell */
.nocash .kpis.six{grid-template-columns:repeat(5,minmax(0,1fr))}
@media (max-width:900px){.nocash .kpis.six{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}}

@media (max-width:640px){.rs-plain .rs-late{display:none}.rs-chips{gap:6px;margin-bottom:2px}.rs-plain .rs-cash{margin-inline-start:0}.rs-chips .tl-chip,.rs-chips .rs-prov{font-size:12px;padding:3px 8px}}

/* r14 (track B): a test without a cash yield (crypto) has five metric tiles — never a sixth empty cell, on any width;
   and when the cash tile is hidden on a phone the last tile fills the row instead of leaving a grey gap */
.kpis.five{grid-template-columns:repeat(5,minmax(0,1fr))}
@media (max-width:900px){.kpis.five{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}}
@media (max-width:480px){.kpis.five{grid-template-columns:repeat(2,minmax(0,1fr))}.kpis.five>.pf-tile:last-child,.nocash .kpis.six>.pf-tile:last-child{grid-column:span 2}}
.dc-effect{margin:6px 2px 8px;padding:8px 12px;border-radius:8px;background:var(--sunk);border-inline-start:3px solid var(--accent,#2962ff)}
/* DD-1 verdict card (owner 2026-11-18): state = icon + word + colour, never colour alone; details folded */
.verdict-card .vc-head{margin:0 0 .25rem;font-size:1.05rem}
.verdict-card .vc-counts{margin:0 0 .4rem;display:flex;flex-wrap:wrap;gap:.25rem .75rem}
.verdict-card .vc-ok{color:var(--ok)}.verdict-card .vc-bad{color:var(--red)}.verdict-card .vc-na{color:var(--muted,#6b7280)}
.verdict-card .vc-list{list-style:none;padding:0;margin:.4rem 0}
.verdict-card .vc-list li{padding:.2rem 0;border-bottom:1px solid var(--line,#e5e7eb)}
.verdict-card .vc-list li.ok b{color:var(--ok)}.verdict-card .vc-list li.bad b{color:var(--red)}.verdict-card .vc-list li.na b{color:var(--muted,#6b7280)}
.verdict-card .vc-list em{font-style:normal;opacity:.8}
