/* LEDGER: the live record of every money event, in the 1.12 UI: tooltip-border panels, real item
   icons per event, WoW's green and red for money in and out, realm time. */

.lg-band { min-height: 54vh; }
.lg-band > .art img { object-position: 50% 45%; }
.lg-wrap { position: relative; z-index: 1; margin-top: -54px; margin-bottom: 70px; }

/* figures */
.lg-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.lg-stats .tile { display: flex; flex-direction: column; gap: 2px; padding: 2px 6px 4px; }
.lg-stats .t { color: #ffd100; font-size: 13px; }
.lg-stats .v { color: #fff; font: 24px/1.2 var(--f-num); }
.lg-stats .s { color: #9d9d9d; font-size: 12.5px; }

/* the panel */
.lg-frame { padding: 6px 8px 8px; }
.lg-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 4px 4px 14px; border-bottom: 1px solid rgba(255, 209, 0, .18); }
.lg-tabs { display: flex; gap: 4px; margin-right: auto; }
.lg-tab { border: 0; background: none; cursor: pointer; padding: 6px 12px 7px; font: 16px var(--f-ui); color: #a99c80;
  border-bottom: 2px solid transparent; }
.lg-tab:hover { color: #fff; }
.lg-tab[aria-selected="true"] { color: #ffd100; border-bottom-color: #ffd100; }
.lg-find .input { width: 220px; font: 14.5px var(--f-ui); color: #fff; }
.lg-kind .input { font: 14.5px var(--f-ui); color: #fff; padding-right: 4px; cursor: pointer; }
.lg-kind option { background: #120f0a; color: #fff; }
.lg-live { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border: 1px solid rgba(255, 209, 0, .25); border-radius: 3px;
  background: rgba(0, 0, 0, .35); cursor: pointer; font: 14px var(--f-ui); color: #a99c80; }
.lg-live.on { color: #1eff00; border-color: rgba(30, 255, 0, .35); }
.lg-dot { width: 8px; height: 8px; border-radius: 50%; background: #6b6250; }
.lg-live.on .lg-dot { background: #1eff00; box-shadow: 0 0 8px #1eff00; animation: lg-pulse 2s ease-in-out infinite; }
@keyframes lg-pulse { 50% { opacity: .35; } }

/* the table */
.lg-table { --cols: 96px minmax(140px, 1.15fr) minmax(190px, 1.6fr) 150px 150px minmax(150px, 1.05fr); }
.lg-table[data-tab="in"] { --cols: 96px minmax(130px, 1fr) minmax(170px, 1.2fr) 150px minmax(200px, 2fr) 110px; }
.lg-row { display: grid; grid-template-columns: var(--cols); gap: 14px; align-items: center; padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.lg-head { padding-top: 12px; padding-bottom: 9px; border-bottom: 1px solid rgba(255, 209, 0, .18); font-size: 13.5px; color: #ffd100; }
#lg-rows .lg-row:nth-child(even) { background: rgba(255, 255, 255, .018); }
#lg-rows .lg-row:hover { background: rgba(255, 209, 0, .06); }
.lg-row.fresh { animation: lg-arrive 2.6s ease-out; }
@keyframes lg-arrive { from { background: rgba(255, 209, 0, .32); box-shadow: inset 3px 0 0 #ffd100; } to { background: transparent; box-shadow: inset 3px 0 0 transparent; } }
.c-amt, .c-bal { text-align: right; }
.lg-head .c-amt, .lg-head .c-bal { text-align: right; }
.c-when { display: flex; flex-direction: column; line-height: 1.25; }
.lg-t { font: 14.5px var(--f-num); color: #e8dfc8; font-variant-numeric: tabular-nums; }
.lg-d { font-size: 12px; color: #857959; }
.c-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.lg-name { color: #fff; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-gone { color: #9d9d9d; font-style: italic; }
.lg-w { font: 12.5px var(--f-mono); color: #a99c80; text-decoration: none; }
.lg-w:hover { color: #ffd100; text-decoration: underline; }
.c-ev { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #e8dfc8; min-width: 0; }
.lg-ico { width: 26px; height: 26px; flex: none; box-shadow: 0 0 0 1px #000, 0 0 0 2px rgba(255, 209, 0, .18); }
.lg-with { color: #a99c80; }
.lg-amt { font: 15.5px var(--f-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lg-amt.up, .lg-amt.up .amt { color: #1eff00; }
.lg-amt.down, .lg-amt.down .amt { color: #ff5a46; }
.c-bal .money .amt { color: #d7ccb2; }
.c-st { display: flex; flex-direction: column; gap: 1px; font-size: 14px; line-height: 1.3; }
.lg-ok { color: #1eff00; }
.lg-ok::before { content: "\2713\00a0"; }
.lg-tx { font: 12.5px var(--f-mono); color: #ffd100; text-decoration: none; }
.lg-tx:hover { text-decoration: underline; }
.lg-send { color: #ffd100; }
.lg-queue { color: #9d9d9d; }
.lg-hold { color: #ff5a46; cursor: help; }
.c-note { font-size: 13.5px; color: #bdb193; line-height: 1.45; }
.lg-empty { margin: 0; padding: 40px 12px; text-align: center; color: #a99c80; font-size: 16px; }
.lg-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 6px 4px; }
.lg-note { margin: 0; color: #857959; font-size: 13.5px; }

/* how to read it */
.lg-help { margin-top: 26px; }
.lg-read { max-width: 820px; padding: 24px 30px; }
.lg-read h2 { font: 400 28px var(--f-title); margin: 0 0 10px; }
.lg-read ul { padding-left: 1.2em; margin: 0 0 12px; }
.lg-read li { margin-bottom: 8px; line-height: 1.6; }
.lg-read b { font-weight: 400; text-shadow: .35px 0 0 currentColor; }

@media (max-width: 1100px) {
  .lg-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg-stats .tile:nth-child(n+4) { display: none; }
}
@media (max-width: 900px) {
  .lg-band { min-height: 0; }
  .lg-wrap { margin-top: 0; }
  .lg-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lg-stats .tile:nth-child(n+4) { display: flex; }
  .lg-stats .tile:nth-child(5) { display: none; }
  .lg-bar { gap: 10px; }
  .lg-tabs { width: 100%; }
  .lg-find, .lg-find .input { flex: 1; width: auto; min-width: 0; }
  .lg-head { display: none; }
  .lg-row, .lg-table[data-tab="in"] .lg-row { grid-template-columns: 1fr auto; grid-template-areas: "ev amt" "who st" "when bal"; gap: 4px 12px; padding: 12px 6px; }
  .lg-table[data-tab="in"] .lg-row { grid-template-areas: "ev amt" "who st" "note note"; }
  .c-ev { grid-area: ev; } .c-amt { grid-area: amt; } .c-who { grid-area: who; flex-direction: row; gap: 8px; align-items: baseline; }
  .c-st { grid-area: st; align-items: flex-end; } .c-when { grid-area: when; flex-direction: row; gap: 6px; }
  .c-bal { grid-area: bal; } .c-note { grid-area: note; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-row.fresh { animation: none; background: rgba(255, 209, 0, .12); }
  .lg-live.on .lg-dot { animation: none; }
}
