/* Astrorix Group website: Markets prices section. Every rule is scoped to mkt-* classes, so other page styles are untouched. */
.mkt-prices { --mkt-ink: #14213d; --mkt-muted: #5b6b82; --mkt-line: #dfe3ea; --mkt-soft: #f5f6f8; --mkt-gold: #ad8239;
              --mkt-up: #17703f; --mkt-down: #b3261e; padding-block: clamp(3rem, 6vw, 5rem); color: var(--mkt-ink); }
.mkt-prices > .wrap { padding-block: 0; }
.mkt-kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mkt-gold); margin-bottom: .5rem; }
.mkt-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: end; margin-bottom: 2rem; }
.mkt-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.12; margin: 0 0 .75rem; }
.mkt-head p { margin: 0; color: var(--mkt-muted); max-width: 46rem; }
.mkt-updated { font-size: .9rem; white-space: nowrap; }
.mkt-groups { display: grid; gap: 2rem; }
.mkt-group h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; margin: 0 0 .75rem; }
.mkt-group h3::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--mkt-swatch, var(--mkt-gold)); }
.mkt-group[data-group="minerals"] { --mkt-swatch: #b8682f; }
.mkt-group[data-group="oil"] { --mkt-swatch: #1f2a3a; }
.mkt-group[data-group="grains"] { --mkt-swatch: #c9a227; }
.mkt-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--mkt-line); border-radius: 14px; overflow: hidden; font-size: .95rem; }
.mkt-table th, .mkt-table td { padding: .8rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--mkt-line); }
.mkt-table tr:last-child td { border-bottom: 0; }
.mkt-table thead th { background: var(--mkt-soft); font-size: .78rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--mkt-muted); }
.mkt-table thead th:nth-child(1) { width: 29%; }
.mkt-table thead th:nth-child(2) { width: 17%; }
.mkt-table thead th:nth-child(3) { width: 11%; }
.mkt-table thead th:nth-child(4) { width: 18%; }
.mkt-table .mkt-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mkt-name { font-weight: 700; display: block; }
.mkt-bench { display: block; color: var(--mkt-muted); font-size: .85rem; }
.mkt-price { font-weight: 700; font-size: 1.05rem; }
.mkt-unit { display: block; color: var(--mkt-muted); font-size: .8rem; font-weight: 400; }
.mkt-chg { font-weight: 700; }
.mkt-chg.is-up { color: var(--mkt-up); }
.mkt-chg.is-down { color: var(--mkt-down); }
.mkt-chg.is-flat, .mkt-chg.is-none { color: var(--mkt-muted); font-weight: 400; }
.mkt-period { white-space: nowrap; }
.mkt-src { color: var(--mkt-muted); font-size: .85rem; }
.mkt-src a { color: inherit; }
.mkt-badge { display: inline-block; margin-top: .2rem; padding: .05rem .45rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--mkt-soft); color: var(--mkt-muted); }
.mkt-badge.is-stale { background: #fff4e0; color: #8a5a00; }
.mkt-empty { padding: 1.25rem; border: 1px dashed var(--mkt-line); border-radius: 14px; color: var(--mkt-muted); margin: 0; }
.mkt-notes { margin-top: 2rem; padding: 1.25rem 1.5rem; background: var(--mkt-soft); border-radius: 14px; font-size: .88rem; color: var(--mkt-muted); }
.mkt-notes h3 { font-size: 1rem; margin: 0 0 .5rem; color: var(--mkt-ink); }
.mkt-notes p { margin: .5rem 0 0; }
.mkt-sources { margin: 0; padding-left: 1.1rem; }
.mkt-sources a { color: var(--mkt-ink); }
.mkt-disclaimer strong { color: var(--mkt-ink); }

@media (max-width: 760px) {
  .mkt-head { grid-template-columns: 1fr; }
  .mkt-updated { white-space: normal; }
  .mkt-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mkt-table { table-layout: auto; }
  .mkt-table, .mkt-table tbody, .mkt-table tr, .mkt-table td { display: block; }
  .mkt-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: .8rem 1rem; border-bottom: 1px solid var(--mkt-line); }
  .mkt-table tr:last-child { border-bottom: 0; }
  .mkt-table td { padding: 0; border: 0; }
  .mkt-table td.mkt-c-name { grid-column: 1; grid-row: 1; }
  .mkt-table td.mkt-c-price { grid-column: 2; grid-row: 1; text-align: right; padding-left: 1rem; }
  .mkt-table td.mkt-c-period { grid-column: 1; grid-row: 2; font-size: .82rem; color: var(--mkt-muted); margin-top: .3rem; }
  .mkt-table td.mkt-c-chg { grid-column: 2; grid-row: 2; text-align: right; margin-top: .3rem; }
  .mkt-table td.mkt-c-src { grid-column: 1 / -1; grid-row: 3; font-size: .82rem; }
}
}
