/* mock_hub.css — /mockdraft (written mock drafts). Builds on stats_hub.css. */

.md-head { margin-bottom: 16px; }

/* ---------- accuracy strip ---------- */
.md-score { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 0 0 18px; }
.md-stat { background: var(--card); padding: 10px 14px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.md-stat b { font-family: var(--cond); font-weight: 700; font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.md-stat b small { font-size: 18px; color: var(--muted); font-weight: 600; }
.md-stat span { color: var(--muted); font-size: 12.5px; margin-top: 4px; }

/* ---------- cards ---------- */
.md-cards { display: flex; flex-direction: column; gap: 14px; }
.md-card { background: var(--card); border: 1px solid var(--rule); border-left: 5px solid var(--team, var(--navy-2)); scroll-margin-top: 12px; }
.md-card-top { display: flex; align-items: center; gap: 12px; padding: 8px 16px; background: var(--team, var(--navy-2)); color: var(--team-ink, #fff); min-height: 52px; }
.md-no { font-family: var(--cond); font-weight: 700; font-size: 34px; line-height: 1; min-width: 40px; font-variant-numeric: tabular-nums; }
.md-logo { width: 36px; height: 36px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; flex: 0 0 auto; }
.md-team { font-family: var(--cond); font-weight: 600; font-size: 22px; line-height: 1.1; letter-spacing: .01em; }

.md-card-body { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; padding: 16px; }
.md-photo { position: relative; aspect-ratio: 16 / 10; background: var(--navy-2); overflow: hidden; display: flex; align-items: center; justify-content: center; align-self: start; }
.md-photo span { font-family: var(--cond); font-weight: 700; font-size: 48px; color: #8FA0B2; }
.md-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }

.md-info { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.md-name { font-family: var(--cond); font-weight: 700; font-size: 36px; line-height: .95; margin: 0; }
.hub .md-name a { color: var(--ink); }
.hub .md-name a:hover { color: var(--accent); text-decoration: none; }
.md-meta { margin: -4px 0 0; color: var(--muted); font-size: 15px; font-weight: 500; }
.md-meta i { font-style: normal; margin: 0 7px; color: #A7B2BD; }

.md-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.md-badges:empty { display: none; }
.md-rank, .md-move, .md-went { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 4px; font-size: 13px; font-weight: 600; white-space: nowrap; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.md-rank b { font-weight: 700; }
.md-move em, .md-went em { font-style: normal; font-weight: 500; color: inherit; opacity: .8; }
.md-move.up { color: #1E7B45; background: #E7F5EC; border-color: #BFE3CC; }
.md-move.down { color: #B42318; background: #FDECEA; border-color: #F5C6C1; }
.md-move.new { color: var(--accent-ink); background: var(--sort); border-color: #C3D8F3; }
.md-move.same { color: var(--muted); }
.md-went img { width: 18px; height: 18px; object-fit: contain; }
.md-went.hit { background: #1E7B45; border-color: #1E7B45; color: #fff; }
.md-went.near { background: var(--gold-tint); border-color: #F1D49A; color: #7A5300; }
.md-went.miss { background: #fff; color: var(--muted); }

.md-measure { display: flex; flex-wrap: wrap; gap: 0; margin: 0; border: 1px solid var(--rule); width: max-content; max-width: 100%; }
.md-measure div { padding: 6px 16px; border-right: 1px solid var(--rule-soft); text-align: center; }
.md-measure div:last-child { border-right: 0; }
.md-measure dt { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.md-measure dd { margin: 1px 0 0; font-family: var(--cond); font-weight: 700; font-size: 22px; line-height: 1.05; font-variant-numeric: tabular-nums; }

.md-line { border-top: 1px solid var(--rule-soft); padding-top: 8px; }
.md-line-head { color: var(--muted); font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.md-line dl { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; }
.md-line dl div { min-width: 52px; padding-right: 12px; }
.md-line dt { color: var(--muted); font-size: 11.5px; }
.md-line dd { margin: 0; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }

.md-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.md-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; border: 1px solid var(--rule); background: #fff; color: var(--ink); }
.md-tag.arch { background: var(--navy-2); border-color: var(--navy-2); color: #fff; font-weight: 600; }
.md-tag.comp b { font-weight: 700; }
.md-tag.plus { border-color: #BFE3CC; background: #F1FAF4; color: #1E6B3C; }
.md-tag.minus { border-color: #F5C6C1; background: #FEF4F3; color: #A0281C; }

.md-report { border-top: 1px solid var(--rule-soft); margin: 0 16px; padding: 14px 0 16px; font-size: 15.5px; line-height: 1.6; color: var(--ink); max-width: 95ch; }
.md-report p { margin: 0 0 10px; }
.md-report p:last-child { margin-bottom: 0; }

/* ---------- list ---------- */
.md-tbl { font-size: 14px; }
.md-tbl td, .md-tbl th { vertical-align: middle; }
.md-tbl td.pk { font-family: var(--cond); font-weight: 700; font-size: 20px; width: 44px; text-align: center; }
.md-tbl thead th:first-child { text-align: center; }
.md-tm { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.md-tm img { width: 24px; height: 24px; object-fit: contain; }
.md-tbl td.pl { display: flex; align-items: center; gap: 10px; min-width: 230px; }
.md-ph { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--paper); flex: 0 0 auto; border: 1px solid var(--rule); }
.md-ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.md-ph.none { visibility: hidden; }
.md-tbl .nm { display: flex; flex-direction: column; line-height: 1.2; }
.md-tbl .nm a { font-weight: 600; }
.md-tbl .nm small { color: var(--muted); font-size: 12px; }
.md-went.sm { height: 24px; padding: 0 8px; font-size: 12.5px; }

/* ---------- vs. actual ---------- */
.md-vs { background: var(--card); border: 1px solid var(--rule); }
.md-vs-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 36px minmax(0, 1fr); align-items: center; border-bottom: 1px solid var(--rule-soft); min-height: 52px; }
.md-vs-row:last-child { border-bottom: 0; }
.md-vs-row:nth-child(odd):not(.md-vs-headrow) { background: var(--row-alt); }
.md-vs-row.hit { background: #EEF8F1 !important; }
.md-vs-headrow { background: var(--navy) !important; color: #fff; font-weight: 600; font-size: 13px; min-height: 36px; position: sticky; top: 0; z-index: 2; }
.md-vs-no { font-family: var(--cond); font-weight: 700; font-size: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.md-vs-headrow .md-vs-no { font-family: var(--text); font-size: 13px; }
.md-vs-side { display: flex; align-items: center; gap: 10px; padding: 6px 12px; min-width: 0; }
.md-vs-side .lg { width: 28px; height: 28px; object-fit: contain; flex: 0 0 auto; }
.md-vs-side .nm { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.md-vs-side .nm a { font-weight: 600; }
.md-vs-side .nm small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-vs-side.empty { color: var(--muted); }
.md-vs-mark { text-align: center; color: #1E7B45; font-weight: 700; font-size: 20px; }
.md-mocked { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; border: 1px solid var(--rule); border-radius: 4px; padding: 2px 8px; background: #fff; }
.md-mocked.out { border-style: dashed; }
.md-mocked-sm { display: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .md-card-body { grid-template-columns: 260px minmax(0, 1fr); gap: 16px; }
  .md-name { font-size: 32px; }
}
@media (max-width: 860px) {
  .md-score { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .md-card-body { grid-template-columns: 1fr; padding: 0 0 14px; gap: 12px; }
  .md-photo { aspect-ratio: 16 / 9; }
  .md-info { padding: 0 14px; }
  .md-card-top { padding: 6px 12px; min-height: 46px; gap: 10px; }
  .md-no { font-size: 30px; min-width: 32px; }
  .md-team { font-size: 20px; }
  .md-name { font-size: 30px; }
  .md-measure { width: 100%; }
  .md-measure div { flex: 1 1 0; padding: 6px 8px; }
  .md-report { margin: 0 14px; font-size: 15px; }
  .md-vs-row { grid-template-columns: 38px minmax(0, 1fr) 22px minmax(0, 1fr); }
  .md-vs-side { padding: 6px 6px; gap: 6px; align-items: flex-start; }
  .md-vs-side .lg { width: 20px; height: 20px; margin-top: 1px; }
  .md-vs-side .nm small { white-space: normal; }
  .md-mocked { display: none; }
  .md-mocked-sm { display: block !important; font-weight: 600; }
}
@media (max-width: 600px) {
  .md-score { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md-score .md-stat:last-child { grid-column: 1 / -1; }
  .md-stat b { font-size: 28px; }
}