/* results screens. Uses the shared tokens and components from ../styles.css. Every rule starts with .rs- */
.rs-page { display: grid; gap: 16px; min-width: 0; }
.rs-page > * { min-width: 0; margin: 0; }
.rs-page .cd + .cd { margin-top: 0; }
.rs-head .seg button { min-height: 44px; }
.rs-wait { min-height: 240px; }

/* tiles */
.rs-tiles .tiles { margin-bottom: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .rs-tiles .tiles { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
.rs-tile b { font-size: 26px; font-weight: 800; overflow-wrap: anywhere; }
.rs-tile .rs-sub { margin-top: 4px; font-size: 12.5px; }
.rs-note { margin: 0; }

/* what to do next */
.rs-sugs { list-style: none; margin: 0; padding: 0; }
.rs-sug { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.rs-sug:first-child { border-top: 0; padding-top: 0; }
.rs-sug:last-child { padding-bottom: 0; }
.rs-sug-t { flex: 1 1 240px; min-width: 0; display: grid; gap: 2px; }
.rs-sug-t b { overflow-wrap: anywhere; }
.rs-sug .btn { flex: 0 0 auto; }
@media (max-width: 520px) { .rs-sug .btn { flex: 1 1 100%; } }

/* from seen to sold */
.rs-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .rs-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.rs-step { background: var(--panel); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 1px; align-content: start; border: 2px solid transparent; }
.rs-step b { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.rs-step-n { font-weight: 600; }
.rs-step .hint { font-size: 13px; }
.rs-step-rm { font-weight: 700; font-size: 13px; color: var(--ok-ink); }
.rs-step.weak { border-color: var(--oak); }
.rs-weak { margin: 12px 0 0; color: var(--ink-2); font-size: 14px; }

/* every post: a table on a wide card, stacked cards on a narrow one (no sideways scroll) */
.rs-posts, .rs-more { container-type: inline-size; }
.rs-post { min-width: 200px; }
.rs-post-t { display: grid; min-width: 0; }
.rs-link { font-weight: 700; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.rs-link:hover { color: var(--blue); text-decoration: underline; }
.rs-post-t .hint, .rs-code { font-size: 12.5px; }
.rs-where { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.rs-enq b { font-size: 15px; }
.rs-won-rm { display: block; font-size: 12px; color: var(--ink-2); }
.rs-tbl td, .rs-tbl th { vertical-align: middle; }
.rs-tbl td.rs-c-verdict, .rs-tbl th.rs-c-verdict { white-space: nowrap; }
@container (max-width: 759px) {
  .rs-tbl thead { display: none; }
  .rs-tbl, .rs-tbl tbody { display: block; }
  .rs-tbl tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; padding: 14px 0; border-top: 1px solid var(--line); }
  .rs-tbl tbody tr:first-child { border-top: 0; padding-top: 4px; }
  .rs-tbl td { display: block; border: 0; padding: 0; text-align: left; white-space: normal; min-width: 0; }
  .rs-tbl td.num { text-align: left; }
  .rs-tbl td::before { content: attr(data-l); display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); }
  .rs-tbl td.rs-c-post, .rs-tbl td.rs-c-where, .rs-tbl td.rs-c-verdict { grid-column: 1 / -1; }
  .rs-tbl td.rs-c-post::before, .rs-tbl td.rs-c-where::before, .rs-tbl td.rs-c-verdict::before { display: none; }
  .rs-post { min-width: 0; }
  .rs-tbl-d tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* bars */
.rs-two { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .rs-two { grid-template-columns: 1fr 1fr; } }
.rs-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rs-bar-h { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; }
.rs-bar { height: 10px; border-radius: 5px; background: var(--line); margin-top: 4px; overflow: hidden; }
.rs-bar span { display: block; height: 100%; border-radius: 5px; background: var(--blue); }

.rs-foot { color: var(--ink-2); font-size: 13px; }
.rs-empty .empty-s { padding: 36px 16px; }

/* more detail (the 1.4.2 numbers) */
.rs-more > summary { cursor: pointer; display: grid; gap: 2px; min-height: 44px; align-content: center; list-style: none; }
.rs-more > summary::-webkit-details-marker { display: none; }
.rs-more > summary::after { content: '+'; position: absolute; right: 18px; font-weight: 800; }
.rs-more { position: relative; }
.rs-more[open] > summary::after { content: '–'; }
.rs-more-b { display: grid; gap: 12px; margin-top: 12px; }
.rs-more-b h3 { margin: 8px 0 0; font-size: 15px; }
.rs-d-tiles { margin: 0; }
.rs-camps, .rs-oldposts { min-width: 0; }
.rs-vis { margin-left: 6px; }
.rs-vis .pill { padding: 0 8px; font-size: 11.5px; }
.rs-views { flex-basis: 100%; margin-top: 2px; }
.rs-yt-note { margin: 10px 0 0; }
