/* Critical minerals table and chips (used on the home page and the critical minerals pages) */
.cm-table { display: grid; grid-template-columns: 1.15fr 1fr 1.15fr; gap: 10px 36px; margin-top: 18px; }
@media (max-width: 900px) { .cm-table { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cm-table { grid-template-columns: 1fr; } }
.cm-col h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--navy); padding-bottom: 8px; border-bottom: 2px solid var(--gold); }
.cm-sub { list-style: none; margin: 0 0 18px; padding: 0; }
.cm-sub li a { display: flex; align-items: center; gap: 12px; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.cm-sub li a:hover { background: var(--gold-soft); }
.cm-sub li a:hover .cm-name { text-decoration: underline; text-underline-offset: 3px; color: var(--navy); }
.cm-name { flex: 1; line-height: 1.3; }
.cm-count { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.cm-flag { width: 40px; height: 28px; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); background-size: cover; background-position: center; }
.cm-badge { width: 40px; height: 28px; flex: none; border-radius: 3px; display: grid; place-items: center; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: #fff; background: var(--navy); }
.cm-badge.ca { background: #d52b1e; }
.cm-badge.green { background: #2f7d32; }
.cm-total { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--ink-soft); }
.cm-total b { color: var(--navy); }
.cm-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.cm-chips li { padding: 7px 13px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; }
.cm-chips li.strategic { border-color: var(--gold); background: var(--gold-soft); }
.cm-chips li small { color: var(--ink-soft); margin-left: 6px; font-size: 12px; }

.cm-col h3 a { color: inherit; text-decoration: none; }
.cm-col h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* group pages (G7, BRICS, Other) */
.cm-block { margin-top: 30px; }
.cm-block h2 { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--navy); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); }
.cm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px 14px; }
.cm-grid li a { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.cm-grid li a:hover { border-color: var(--gold); }
.group-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.group-nav a { padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-size: 15px; }
.group-nav a:hover { border-color: var(--navy); }
.group-nav a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* price tables on each list page, laid out like the MP master workbook */
.xl { margin: 8px 0 36px; font-family: Arial, "Helvetica Neue", sans-serif; }
.xl-bar { background: #000080; color: #fff; padding: 4px 12px; font-size: 16px; letter-spacing: .02em; }
.xl-bar span { margin-left: 18%; }
.xl-sub { margin: 8px 0 0; text-align: center; font-size: 13px; color: #1b1f27; }
.xl-wrap { overflow-x: auto; }
.xl-t { width: 100%; border-collapse: collapse; font-size: 13px; color: #000; min-width: 860px; font-variant-numeric: tabular-nums; }
.xl-t th { font-weight: 400; padding: 3px 8px; white-space: nowrap; text-align: center; color: #000; }
.xl-t thead tr.xl-h1 th { padding-top: 14px; }
.xl-t thead tr.xl-h2 th { padding-bottom: 12px; }
.xl-t thead tr.xl-h2 th.c0 { text-align: left; padding-left: 24px; }
.xl-t td { padding: 3px 8px; border-top: 1px solid #dbe5f1; white-space: nowrap; text-align: right; }
.xl-t tbody tr:last-child td { border-bottom: 1px solid #dbe5f1; }
.xl-t td.c0 { text-align: center; font-size: 12px; color: #000; }
.xl-t td.c1 { text-align: center; color: #1f6fc5; }
.xl-t td.c2 { text-align: left; font-size: 11.5px; color: #000; }
.xl-t td.c3 { font-weight: 700; }
.xl-t td.c3, .xl-t th.c3 { border-left: 4px solid #eef1f5; border-right: 4px solid #eef1f5; }
.xl-t td.c4, .xl-t th.c4 { border-right: 4px solid #eef1f5; }
.xl-t td.c6, .xl-t th.c6 { border-left: 4px solid #eef1f5; }
.xl-t td.up { color: #008000; } .xl-t td.down { color: #ff0000; }
.xl-t tr.xl-sec td { text-align: center; color: #000; font-weight: 700; background: #f3f6fa; border-top: 1px solid #dbe5f1; padding: 5px 8px; }
.xl-t tbody tr:hover td { background: #f7f9fc; }
.xl-legend { margin: 18px auto 0; text-align: center; font-size: 13px; line-height: 1.55; color: #000; }
.xl-also { margin: 14px 0 0; text-align: center; font-size: 13px; color: #1b1f27; }
