/* Rally Drill trainer look (site40, chris's Option B): the Study / Practice / Get certified path, position cards with
   progress, exam badges, a Start bar pinned to the bottom of the screen, and question cards. Linked by the three trainers only. */
#setup .steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
#setup .step { display: flex; gap: 12px; align-items: center; padding: 14px 16px; color: var(--ink); text-decoration: none; text-align: left;
  font: inherit; background: rgba(233, 236, 232, .03); border: 0; border-right: 1px solid var(--rule); border-radius: 0; cursor: pointer; }
#setup .step:last-child { border-right: 0; }
#setup .step:hover { background: rgba(233, 236, 232, .07); }
#setup .step .n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 18px var(--display); background: var(--sc); color: #15191b; }
#setup .step b { display: block; font: 700 17px var(--display); text-transform: uppercase; letter-spacing: .03em; }
#setup .step small { display: block; color: var(--muted); font-size: 12.5px; }
#setup .step.on { background: color-mix(in srgb, var(--sc) 14%, transparent); box-shadow: inset 0 -3px 0 var(--sc); }
#setup .sec-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; margin-top: 4px; }
#setup .sec-h h2 { margin: 0; font: 800 24px var(--display); text-transform: uppercase; letter-spacing: .02em; }
#setup .sec-h span { color: var(--muted); font-size: 13.5px; }

/* practice: a card per position, with its color, icon and how much of it you've worked on this device */
#stations { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
#stations .chip { padding: 0; overflow: hidden; border-radius: 12px; border: 1px solid var(--rule); background: #22292c; gap: 0; align-content: start; }
#stations .chip .top { display: flex; align-items: center; gap: 10px; padding: 14px 14px 6px; }
#stations .chip .top > span:last-child { font: 700 18px/1.15 var(--display); text-transform: uppercase; letter-spacing: .02em; }
#stations .chip .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); flex: none; }
#stations .chip .ic svg, #setup .startbar .ic svg { width: 22px; height: 22px; }
#stations .chip > small { padding: 0 14px 10px; font-size: 13px; line-height: 1.4; }
#stations .chip .pg { margin-top: auto; padding: 10px 14px 12px; border-top: 1px solid var(--rule); display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
#stations .chip .pg i { display: block; height: 5px; border-radius: 3px; background: var(--rule); overflow: hidden; }
#stations .chip .pg b { display: block; height: 100%; background: var(--c); }
#stations .chip[aria-pressed="true"] { border-color: var(--c); box-shadow: 0 0 0 2px var(--c); }
#stations .chip[aria-pressed="true"] small { color: var(--ink); }
#stations .chip[data-wide] { grid-column: 1 / -1; background: repeating-linear-gradient(135deg, #22292c 0 14px, #252d30 14px 28px); }

/* exams: a badge per position that lights up green once certified; the full exam in gold across the row */
#exams { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 10px; }
#exams .chip { border-radius: 12px; text-align: center; justify-items: center; align-content: start; padding: 16px 10px 14px; gap: 6px; background: #22292c; }
#exams .chip .md { width: 44px; height: 44px; color: #4a5357; }
#exams .chip .md svg { width: 100%; height: 100%; }
#exams .chip > span:not(.md) { font-weight: 700; }
#exams .chip.earned { border-color: #2f6b45; background: color-mix(in srgb, #5fbf80 9%, #22292c); }
#exams .chip.earned .md { color: #5fbf80; }
#exams .chip.expired small { color: #f0a03c; }
#exams .chip[data-st="exam"] { grid-column: 1 / -1; background: linear-gradient(180deg, #2b2a20, #22292c); border-color: #6b5a1d; }
#exams .chip[data-st="exam"] .md { color: #f2c230; }
#exams .chip[aria-pressed="true"] { border-color: #f2c230; box-shadow: 0 0 0 2px #f2c230; }
#exams .chip[aria-pressed="true"] small { color: var(--ink); }
#exams .chip.earned[aria-pressed="true"] small { color: #5fbf80; }

/* the Start bar: what you picked and the button, pinned to the bottom of the screen while you choose */
#setup .startbar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px 12px 18px; border-radius: 12px; background: #11161a; border: 1px solid var(--rule); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
#setup .startbar .what { display: flex; align-items: center; gap: 12px; min-width: 0; }
#setup .startbar .ic { flex: none; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, #f2c230) 18%, transparent); color: var(--c, #f2c230); }
#setup .startbar b { display: block; font: 700 18px/1.15 var(--display); text-transform: uppercase; }
#setup .startbar small { display: block; color: var(--muted); font-size: 13px; }
#setup .startbar #go { font-size: 17px; padding: 13px 30px; background: #f2c230; color: #15191b; }

#setup .lk-seen { margin-bottom: -4px; }
#setup .meter { display: none; }

/* Keep sharp mode (missed questions from My Training) shows only the Start bar */
.rd-keepmode #setup .steps, .rd-keepmode #setup .sec-h { display: none !important; }

/* a question: the situation in a card with a header, answers as cards with A B C D keys */
#drill .progress { gap: 6px; }
#drill .progress i { height: 8px; border-radius: 4px; }
#drill .progress i.now { background: #f2c230; }
#drill .progress i.done { background: #5fbf80; }
#drill .drill > .scene:first-child { border: 1px solid var(--rule); border-radius: 12px; padding: 0 16px 16px; background: #22292c; align-content: start; }
#drill .ctrl-tag { margin: 0 -16px 4px; padding: 10px 16px; width: calc(100% + 32px); box-sizing: border-box; background: rgba(242, 194, 48, .16); border-bottom: 2px solid #f2c230; border-radius: 12px 12px 0 0; }
#drill .ctrl-tag b { background: #f2c230; }
#drill .choices legend { font: 800 20px var(--display); letter-spacing: .01em; text-transform: none; color: var(--ink); }
#drill .choices { counter-reset: rd-key; }
#drill .choice { position: relative; padding: 14px 14px 14px 58px; border-radius: 12px; background: #22292c; font-size: 15.5px; }
#drill .choice input { position: absolute; opacity: 0; pointer-events: none; }
#drill .choice::before { counter-increment: rd-key; content: counter(rd-key, upper-alpha); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; box-sizing: border-box;
  border-radius: 8px; display: grid; place-items: center; font: 800 16px var(--display); border: 2px solid #4a5357; color: var(--muted); }
#drill .choice:hover { border-color: #f2c230; }
#drill .choice:has(input:checked) { border-color: #f2c230; box-shadow: 0 0 0 1px #f2c230; }
#drill .choice:has(input:checked)::before { background: #f2c230; border-color: #f2c230; color: #15191b; }
#drill .choice:has(input:focus-visible) { outline: 2px solid var(--focus, #6aa7e0); outline-offset: 2px; }
#drill #next { background: #f2c230; color: #15191b; font-size: 16px; padding: 12px 22px; }

@media (max-width: 640px) {
  #setup .steps { grid-template-columns: 1fr; }
  #setup .step { border-right: 0; border-bottom: 1px solid var(--rule); padding: 10px 14px; }
  #setup .step:last-child { border-bottom: 0; }
  #exams { grid-template-columns: 1fr 1fr; }
  #setup .startbar { padding: 10px 10px 10px 12px; }
  #setup .startbar #go { padding: 12px 18px; white-space: nowrap; }
  #setup .startbar small { display: none; }
  #setup .startbar b { font-size: 17px; }
}

/* rd-design1: step colors: Study red, Practice yellow, Get certified green; the step you're on is stronger */
#setup .step:nth-child(1) { --sc: #e2574f !important } #setup .step:nth-child(2) { --sc: #f2c230 !important } #setup .step:nth-child(3) { --sc: #5fbf80 !important }
#setup .step { background: color-mix(in srgb, var(--sc) 13%, transparent) }
#setup .step:hover { background: color-mix(in srgb, var(--sc) 20%, transparent) }
#setup .step.on { background: color-mix(in srgb, var(--sc) 30%, transparent); box-shadow: inset 0 -4px 0 var(--sc) }
#setup .step b { color: #fff } #setup .step small { color: #d3d8d5 }
