/* commodities board */
[data-board-page="commodities"] { --c1: #c77700; }
html[data-theme="dark"] [data-board-page="commodities"] { --c1: #d9880f; }

.cm-stats { margin-bottom: 16px; }
.cm-stats .sv small.cm-u { font-size: 12px; font-weight: 600; color: var(--text-3); margin-left: 4px; letter-spacing: 0; }

/* table */
.cm-tbl .cm-n { display: grid; line-height: 1.3; }
.cm-tbl .cm-n b { font-weight: 640; }
.cm-tbl .cm-n small { font-size: 11.5px; color: var(--text-3); }
.cm-tbl tr.cm-g th { position: static; background: var(--bg); font-size: 12.5px; font-weight: 650; color: var(--text-2); padding: 14px 12px 6px; text-align: left; }
html[data-theme="dark"] .cm-tbl tr.cm-g th { background: var(--bg-soft); }
.cm-tbl tbody tr.cm-g:hover { background: transparent; }
.cm-tbl tbody tr[data-sym] { cursor: pointer; }
.cm-tbl tbody tr.cur td { background: var(--bg-sunk); }
.cm-tbl tbody tr.cur .cm-n b { color: var(--accent-ink); }
.cm-tbl td .pill { min-width: 68px; justify-content: center; }
.cm-sp { width: 128px; padding-top: 6px; padding-bottom: 6px; }
.cm-sp canvas { display: block; width: 112px; height: 30px; }
.cm-iv { font-style: normal; font-size: 10.5px; font-weight: 650; color: var(--text-2); margin-left: 5px; padding: 0 4px; border: 1px solid var(--line-strong); border-radius: 4px; vertical-align: 1px; }

/* gold in won and across venues */
.cm-gold { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
.cm-kr { display: grid; gap: 10px; }
.cm-kr .res-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cm-kr .res .rv { font-size: 21px; }
.cm-kr .res.hero-r .rv { font-size: 30px; }
.cm-kr .res.hero-r .rs { font-size: 12.5px; line-height: 1.5; }
.cm-ex { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; white-space: nowrap; }
.cm-ex img { width: 16px; height: 16px; border-radius: 4px; }
.cm-ven-t th { position: static; }
.cm-pd { display: none; font-size: 11.5px; color: var(--text-3); font-weight: 500; margin-top: 2px; }
.cm-ven-t td .micro { font-size: 11.5px; }

/* ratios */
.cm-ratio .panel-b { padding-bottom: 4px; }
.cm-rstats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
button.cm-rs { text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .14s var(--ease), background-color .14s var(--ease); }
button.cm-rs:hover { border-color: var(--line-strong); }
button.cm-rs[aria-pressed="true"] { border-color: var(--text); background: var(--bg); }
html[data-theme="dark"] button.cm-rs[aria-pressed="true"] { background: var(--bg-raised); }
.cm-rs .sv { font-size: 21px; }
.cm-rs .ss { font-size: 12px; color: var(--text-3); line-height: 1.45; }
.cm-chart .panel-h .sp { flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 1100px) {
  .cm-gold { grid-template-columns: minmax(0, 1fr); }
  .cm-rstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cm-tbl th.cm-sp-h, .cm-tbl td.cm-sp, .cm-tbl th.cm-vol-h, .cm-tbl td.cm-vol { display: none; }
  .cm-kr .res.hero-r .rv { font-size: 26px; }
}
@media (max-width: 520px) {
  .cm-tbl th.cm-fr-h, .cm-tbl td.cm-fr { display: none; }
  .cm-ven-t th:nth-child(2), .cm-ven-t td.cm-pdc { display: none; }
  .cm-ven-t .cm-pd { display: block; }
  .cm-chart .panel-h { flex-wrap: wrap; }
  .cm-chart .panel-h .sp { margin-left: 0; width: 100%; justify-content: flex-start; }
  .cm-tbl td, .cm-tbl th { padding-left: 10px; padding-right: 10px; }
  .cm-tbl td .pill { min-width: 60px; padding-inline: 6px; }
  .cm-kr .res-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cm-kr .res .rv { font-size: 18px; }
  .cm-rstats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
