/* market.css — Market tab / Buy List (Arcane theme).
 * Scoped to .mk-* classes so it can't collide with the shell styles or the
 * other feature workers. Uses the theme tokens from styles.css (:root vars);
 * Cinzel for display headers like the rest of the site.
 * Normal document flow only (no position:fixed).
 */

/* grand summary */
.mk-grand { text-align: center; padding: 16px; }
.mk-grand-num {
  font-family: "Cinzel", Georgia, serif; font-weight: 700;
  font-size: 34px; color: var(--gold); line-height: 1.1;
}
.mk-grand-lbl {
  font-family: "Cinzel", Georgia, serif; font-size: 12px;
  letter-spacing: .08em; color: var(--gold); text-transform: uppercase;
  margin: 2px 0 6px 0;
}

/* section headers */
.mk-sect {
  font-family: "Cinzel", Georgia, serif; letter-spacing: .08em;
  color: var(--gold); font-size: 13px; margin: 18px 0 6px 0;
}

/* expandable list cards */
.mk-list {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; margin: 8px 0; overflow: hidden;
}
.mk-head {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: none; padding: 14px 16px;
  cursor: pointer; color: var(--cream); font-family: inherit; text-align: left;
}
.mk-hmain { flex: 1; min-width: 0; }
.mk-hname { display: block; font-weight: 700; font-size: 16px; }
.mk-chev {
  color: var(--dim-warm); font-size: 18px; line-height: 1;
  transform: rotate(0deg); transition: transform .15s ease;
}
.mk-chev.open { transform: rotate(90deg); color: var(--gold); }

/* rows */
.mk-rows { padding: 0 8px 8px 8px; }
.mk-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px; border-top: 1px solid rgba(217,164,65,.08);
}
.mk-thumb {
  width: 44px; height: 62px; object-fit: cover;
  border-radius: 6px; flex: none; background: var(--bg-deep);
}
.mk-rinfo { flex: 1; min-width: 0; }
.mk-rname { font-weight: 600; font-size: 14px; }
.mk-badge {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  color: var(--gold-pale); border: 1px solid var(--line);
  border-radius: 6px; padding: 0 6px; margin-left: 6px; vertical-align: 1px;
}
.mk-need { font-weight: 700; font-size: 17px; color: var(--gold); white-space: nowrap; }
.mk-warn { color: var(--red); }
.mk-ok { color: var(--green); }

/* printings expander */
.mk-var { margin-top: 4px; }
.mk-var summary {
  cursor: pointer; font-size: 12.5px; color: var(--gold);
  list-style: none;
}
.mk-var summary::before { content: "\25b8  "; color: var(--dim-warm); }
.mk-var[open] summary::before { content: "\25be  "; }
.mk-var .small { padding: 2px 0 2px 18px; }

/* prices */
.mk-right { text-align: right; white-space: nowrap; }
.mk-grand-cost {
  font-size: 22px; font-weight: 700; color: var(--gold);
  margin: 6px 0 2px 0;
}
.mk-linetot { color: var(--gold); font-weight: 700; margin-top: 2px; }
.mk-unitprice { color: var(--gold); font-weight: 700; }
.mk-none { color: var(--dim-warm); font-style: italic; }
.mk-tcg {
  color: var(--gold); font-size: 12.5px; font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.mk-tcg:hover { color: var(--gold-pale); }

/* buy buttons */
.mk-buyrow { padding: 8px 8px 2px 8px; }
.mk-buyall { margin-top: 12px; }
