/* Match history page: parchment style after the 2012 client concept. */
.mh { max-width: 1100px; margin: 0 auto; padding: 10px 16px 30px; color: #3b2a14; font-size: 14px; }
.mh a { color: #1d6fa5; }
.mh-search { display: flex; gap: 8px; margin: 0 0 14px; }
.mh-search input { flex: 1; max-width: 320px; padding: 7px 10px; border: 1px solid #b59a64; background: #fffaf0; color: #3b2a14; font-size: 14px; }
.mh-empty { padding: 40px 10px; text-align: center; font-size: 16px; }
.mh-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 10px; }
.mh-head h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; color: #7a1c12; font-size: 26px; font-weight: normal; }
.mh-head span { color: #6b5636; }

.mh-wrap { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: 16px;
  background: linear-gradient(#f3e5c4, #e8d4a8); border: 1px solid #b59a64; padding: 14px; box-shadow: inset 0 0 40px rgba(120, 80, 20, .25); }
@media (max-width: 820px) { .mh-wrap { grid-template-columns: 1fr; } }

.mh-list { list-style: none; margin: 0; padding: 0 4px 0 0; max-height: 640px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.mh-row { width: 100%; display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; text-align: left;
  background: linear-gradient(#fbf3df, #efdfb9); border: 2px solid #8a6b3a; padding: 5px; cursor: pointer; font: inherit; color: inherit; }
.mh-row:hover, .mh-row:focus { border-color: #c2902f; outline: none; }
.mh-row.on { border-color: #3b2a14; background: linear-gradient(#fff8e6, #f4e3bb); box-shadow: 0 0 0 2px #e0b45a; }
.mh-champ { width: 64px; height: 64px; object-fit: cover; border: 1px solid #5a4322; display: block; }
.mh-main { display: flex; flex-direction: column; min-width: 0; }
.mh-res { font-family: Georgia, 'Times New Roman', serif; font-variant: small-caps; font-size: 20px; line-height: 1.1; }
.mh-victory { color: #1f8a1f; }
.mh-defeat { color: #b0201a; }
.mh-surrender { color: #b59a00; }
.mh-leave { color: #d46a00; }
.mh-queue { align-self: flex-start; background: #111; color: #fff; font-size: 10px; font-weight: bold; padding: 1px 5px; margin: 2px 0; letter-spacing: .5px; }
.mh-map, .mh-date { font-size: 12px; color: #4b3a1f; }
.mh-date { font-weight: bold; }
.mh-nums { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; color: #4b3a1f; white-space: nowrap; }
.mh-nums b { font-size: 13px; color: #2a1d0b; }

.mh-detail { background: #d8bd84; border: 1px solid #8a6b3a; min-height: 420px; display: flex; flex-direction: column; }
.mh-detail-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: linear-gradient(#f6ead0, #e4cd99); border-bottom: 1px solid #8a6b3a; }
.mh-detail-head > span { font-family: Georgia, 'Times New Roman', serif; color: #7a1c12; font-size: 18px; }
.mh-tabs { display: flex; gap: 4px; }
.mh-tabs button { background: linear-gradient(#2f8f8a, #1d5e5a); color: #e9fffd; border: 1px solid #0f3b38; padding: 4px 14px; font-size: 11px;
  font-weight: bold; text-transform: uppercase; cursor: pointer; letter-spacing: .5px; }
.mh-tabs button.on { background: linear-gradient(#49c2bb, #2a8a84); box-shadow: inset 0 0 0 1px #c9fffb; }
.mh-game { padding: 10px 12px; overflow-x: auto; }
.mh-game-title { margin: 0 0 8px; }
.mh-team { margin: 12px 0 4px; font-family: Georgia, 'Times New Roman', serif; font-variant: small-caps; font-size: 17px; }
.mh-table { width: 100%; border-collapse: collapse; background: rgba(255, 250, 235, .55); font-size: 13px; }
.mh-table th { text-align: left; font-size: 11px; text-transform: uppercase; color: #5a4322; padding: 5px 6px; border-bottom: 1px solid #a88a52; white-space: nowrap; }
.mh-table td { padding: 5px 6px; border-bottom: 1px solid #c9ad74; vertical-align: middle; }
.mh-me td { background: rgba(255, 223, 128, .45); }
.mh-who { display: flex; gap: 8px; align-items: center; min-width: 170px; }
.mh-who img { width: 34px; height: 34px; border: 1px solid #5a4322; }
.mh-who span { display: flex; flex-direction: column; }
.mh-who small, .mh-table small { color: #6b5636; }
.mh-spells img { width: 20px; height: 20px; display: block; margin: 1px 0; border: 1px solid #5a4322; }
.mh-kda { white-space: nowrap; font-weight: bold; }
.mh-items { white-space: nowrap; }
.mh-item { width: 26px; height: 26px; display: inline-block; vertical-align: middle; margin-right: 2px; border: 1px solid #5a4322; background: #3a2c18; }
.mh-item-empty { opacity: .35; }
.mh-row-win td:first-child { border-left: 3px solid #1f8a1f; }
.mh-row-loss td:first-child { border-left: 3px solid #b0201a; }
.mh-records { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.mh-records span { background: rgba(255, 250, 235, .7); border: 1px solid #b59a64; padding: 6px 8px; font-size: 12px; }
.mh-records b { display: block; font-size: 18px; color: #2a1d0b; }
.mh-note { color: #5a4322; font-size: 12px; font-style: italic; }
.mh-heat { position: relative; text-align: center; padding: 30px 10px; color: #3b2a14; }
.mh-heat img { max-width: 320px; width: 100%; opacity: .5; display: block; margin: 0 auto 10px; }
[hidden] { display: none !important; }
.mh-detail { min-width: 0; }
.mh-stats td { white-space: nowrap; }
.mh-pane { overflow-x: auto; }
.mh, .mh * { box-sizing: border-box; }
.mh-buys { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mh-buys li { display: flex; flex-direction: column; align-items: center; background: rgba(255, 250, 235, .7); border: 1px solid #b59a64; padding: 4px 6px; font-size: 11px; min-width: 54px; }
.mh-buys li span { font-weight: bold; }
.mh-heat { padding: 10px; text-align: center; }
.mh-heat-map { position: relative; width: 100%; max-width: 380px; margin: 0 auto; }
.mh-heat-map img { width: 100%; display: block; border: 2px solid #5a4322; opacity: 1; max-width: none; margin: 0; }
.mh-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 1px solid rgba(0,0,0,.6); display: inline-block; }
.mh-legend .mh-dot { position: static; margin: 0 2px 0 0; vertical-align: middle; }
.mh-dot-kill { background: rgba(40, 200, 60, .75); }
.mh-dot-death { background: rgba(220, 40, 30, .75); }
.mh-dot-me { box-shadow: 0 0 0 2px #ffe27a; }
.mh-legend { font-size: 12px; margin-top: 8px; }

/* 2013 client look (second reference) */
.mh-row { grid-template-columns: 58px 1fr auto; }
.mh-champ { width: 58px; height: 58px; }
.mh-res { font-family: Arial, Helvetica, sans-serif; font-variant: normal; font-size: 15px; font-weight: bold; }
.mh-kind { font-size: 12px; color: #2a1d0b; }
.mh-kdarow { display: inline-flex; gap: 8px; align-items: center; }
.mh-kdai { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: bold; color: #2a1d0b; }
.mh-kdai svg { width: 14px; height: 14px; color: #4b3a1f; }
.mh-ip { color: #4b3a1f; font-size: 12px; min-height: 1em; }
.mh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mh-sd-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0 10px; border-bottom: 1px solid #a88a52; }
.mh-sd-top .mh-item { width: 32px; height: 32px; }
.mh-sd { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; margin: 10px 0 14px; }
.mh-sd dt { text-align: right; color: #2a1d0b; font-size: 13px; }
.mh-sd dd { margin: 0; color: #c0571a; font-weight: bold; font-size: 13px; }
.mh-nr { color: #8a7650; font-weight: normal; font-style: italic; font-size: 12px; }
