/* My review collection (v2/collection.js; docs/platform/FLASHCARDS.md part e): the shelf of topic cards in three piles.
   Every rule hangs off an .rc- class, which only that file creates. */

.rc-h2 { font-size: 1.1rem; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.rc-tools { gap: 16px; flex-wrap: wrap; margin: 14px 0; }
.rc-tools label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 600; min-width: 0; max-width: 100%; }
.rc-tools select { width: auto; min-width: 0; max-width: 100%; min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }

/* At a glance: one bar per module, domain or course. */
.rc-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rc-bars li { display: grid; gap: 4px; }
.rc-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--line); }
.rc-bar i { display: block; min-width: 4px; }
.rc-seg-again { background: var(--red); }
.rc-seg-there { background: var(--amber); }
.rc-seg-got { background: var(--green); }
.rc-seg-none { background: #9aa8bb; }

/* The three piles, side by side on wide screens and one above the other on phones. */
.rc-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 860px) { .rc-cols { grid-template-columns: 1fr; } }
.rc-col, .rc-new { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; min-height: 120px; }
.rc-new { margin-bottom: 14px; border-style: dashed; }
.rc-col-again { border-top: 5px solid var(--red); }
.rc-col-there { border-top: 5px solid var(--amber); }
.rc-col-got { border-top: 5px solid var(--green); }
.rc-col.rc-over { outline: 3px dashed var(--teal); outline-offset: 2px; }
.rc-empty { margin: 0; }
.rc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rc-new .rc-list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* A topic card, in its course's color. */
.rc-tile { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line); border-left: 6px solid var(--rc-c, var(--navy-2)); border-radius: 12px; background: var(--card); box-shadow: var(--shadow); cursor: grab; overflow-wrap: anywhere; }
.rc-tile.rc-dragging { opacity: .55; }
.rc-course { font-size: .8rem; font-weight: 700; color: var(--rc-c, var(--navy-2)); text-transform: uppercase; letter-spacing: .03em; }
.rc-name { font-family: var(--display); color: var(--navy); line-height: 1.3; }
.rc-code { font-size: .85rem; color: var(--muted); }
.rc-about summary { cursor: pointer; font-size: .9rem; color: var(--teal-dark); min-height: 24px; }
.rc-about p { margin: 6px 0 0; font-size: .9rem; }
.rc-move { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-pile-btn { min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); cursor: pointer; font-size: .88rem; }
.rc-pile-btn:hover { border-color: var(--teal); }
.rc-pile-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
/* Focus: navy on the white card, well over 3:1 (the sky blue is not). */
.rc-pile-btn:focus-visible, .rc-tile:focus-visible, .rc-tools select:focus-visible, .rc-about summary:focus-visible, .rc-try [data-rc-result]:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.rc-try-btn { justify-self: start; }
.rc-review-pile { margin: 0 0 10px; }
.rc-after { margin-top: 8px; }
.rc-after .rc-tile { cursor: default; }

/* Try a new example: the question panel above the shelf. */
.rc-try { margin: 0 0 14px; border-left: 6px solid var(--teal); }
.rc-try h2:focus { outline: none; }
.rc-try [data-rc-result]:focus:not(:focus-visible) { outline: none; }
.rc-try-piles { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
