/* radiologytrainee.org — Differentials lookup (/differentials/) and self-test (/differentials/test/) */
.tag-diff { color: var(--amber); border-color: rgba(242,184,75,.4); }

/* index */
.dx-tools { display: grid; gap: 10px; margin: 8px 0 4px; }
.dx-search input { width: 100%; max-width: 560px; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.dx-search input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 2px rgba(94,200,240,.25); }
.dx-station h2 { display: flex; align-items: center; gap: 8px; }
.dx-mods { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.dx-mod { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 18px 14px; }
.dx-mod h3 { margin: .7em 0 .4em; }
.dx-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.dx-item { display: grid; gap: 1px; padding: 8px 0; border-top: 1px solid var(--border); }
.dx-item:first-child { border-top: 0; }
.dx-item > a { font-weight: 600; text-decoration: none; }
.dx-item > a:hover { text-decoration: underline; }
.dx-item-meta, .dx-item-top { font-size: .84rem; color: var(--muted); }

/* entry page */
.dx-test-link { margin: 0; }
.dx-summary .label { color: var(--amber); }
.dx-section h2 { margin-top: 1.2em; }
.dx-group { color: var(--amber); margin: 1em 0 .3em; }
.dx-quick { margin: 8px 0; padding-left: 1.6em; display: grid; gap: 6px; }
.dx-quick > li::marker { color: var(--accent); font-weight: 800; }
.dx-name { font-weight: 700; }
.dx-key { display: block; color: #c5d1dc; font-size: .93rem; }
.mnm { display: inline-block; margin-left: 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
  color: #ff9b9b; border: 1px solid rgba(255,123,123,.5); border-radius: 999px; padding: 0 8px; vertical-align: 1px; }
.dx-table { width: 100%; border-collapse: collapse; background: var(--panel); font-size: .93rem; }
.dx-table th, .dx-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.dx-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--bg-2); }
.dx-table tbody th { width: 24%; color: var(--text); }
.dx-table ul { margin: 0; padding-left: 1.1em; }
.dx-table li { margin: .15em 0; }
.dx-table tr:last-child th, .dx-table tr:last-child td { border-bottom: 0; }
.dx-next { padding-left: 1.4em; } .dx-next li { margin: .35em 0; }
.dx-teach { margin-top: 24px; }
.dx-teach ul { padding-left: 1.2em; } .dx-teach li { margin: .3em 0; }
.mnemonic { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px; margin: 8px 0; }
.mn-name { margin: 0 0 4px; font-weight: 700; color: #5fc9c0; }
.dx-accept li { color: var(--muted); }
.dx-related { margin-top: 24px; }
.dx-rel-links { display: flex; gap: 8px; flex-wrap: wrap; }
.src-lic { display: block; color: var(--muted); font-size: .85rem; }

/* self-test */
.dxt-run { max-width: 900px; }
.dxt-count-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 20px 0 6px; font-weight: 700; }
.dxt-count-line span:focus { outline: none; }
.dxt-q .stem .label { display: block; margin-bottom: 4px; }
.dxt-rank { margin: 8px 0; padding-left: 1.6em; display: grid; gap: 8px; }
.dxt-rank > li::marker { color: var(--accent); font-weight: 800; }
.dxt-in[readonly] { opacity: .85; border-style: dashed; }
.dxt-actions { margin: 12px 0; }
.dxt-guide { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 18px 12px; margin: 16px 0; }
.dxt-guide h2 { margin-top: .5em; font-size: 1.15rem; }
.dxt-guide label { cursor: pointer; }
.dxt-guide input[type=checkbox] { width: 1.05em; height: 1.05em; accent-color: var(--accent); vertical-align: -2px; }
.dxt-opts { list-style: none; padding-left: .4em; }
.dxt-progress h2 { font-size: 1.1rem; }
@media (max-width: 640px) {
  .dx-table tbody th { width: auto; }
}

/* index at scale: collapsible stations, per-modality "Show all", live count */
details.dx-station { border-top: 1px solid var(--border); padding: 4px 0; }
details.dx-station > summary { cursor: pointer; list-style: none; }
details.dx-station > summary::-webkit-details-marker { display: none; }
details.dx-station > summary h2 { display: inline-flex; margin: .5em 0; }
details.dx-station > summary h2::before { content: "\25B8"; color: var(--muted); margin-right: 4px; transition: transform .15s; }
details.dx-station[open] > summary h2::before { transform: rotate(90deg); }
details.dx-station > .dx-mods { margin: 6px 0 18px; }
.js .dx-mod:not(.dx-expanded) .dx-more { display: none; }
.js.dx-filtering .dx-mod .dx-more:not([hidden]) { display: grid; }
.js.dx-filtering .dx-more-btn { display: none; }
.dx-more-btn { margin-top: 8px; }
.dx-expand { margin: 8px 0 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* self-test setup: station cards. Long public names ("Neuroradiology/Head and Neck") squeezed the nowrap question
   count out of the card; let the name wrap and put the count on its own line under the name. Scoped to #dxt-stations
   so exam mode's cards (exam.css) are unchanged. */
#dxt-stations .ex-station { flex-wrap: wrap; row-gap: 2px; min-width: 0; }
#dxt-stations .ex-st-name { flex: 1 1 0; min-width: 0; overflow-wrap: break-word; }
#dxt-stations .ex-st-n { flex: 1 0 100%; padding-left: calc(1.15em + 10px); }

/* P3: reject lists (unsafe answers that earn nothing) */
.dxt-guide .reject { display: block; font-size: .85rem; color: var(--danger, #a4262c); margin-top: 2px; }

/* P2: "Why these answers" after the reveal */
.dxt-why { background: var(--panel); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 4px 18px 10px; margin: 16px 0; }
.dxt-why h3 { font-size: 1.05rem; margin: .6em 0 .3em; }
.dxt-why ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

/* P4: single-choice formats */
.dxt-choices { border: 0; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.dxt-choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); cursor: pointer; }
.dxt-choice input { margin-top: .25em; }
.dxt-optreview li.is-wrong b { color: #a4262c; }
.tag-draft { background: #fff4ce; color: #5c4400; }
