/* Each mineral owns the same palette in its tab, selected map and source table.
   Metallic tints follow material appearance; lighter values keep dark UI text legible. */
.mineral-atlas,
.mineral-atlas[data-active-mineral="silver"],
.mineral-atlas [data-atlas-mineral="silver"],
.mineral-atlas [data-table-mineral="silver"] { --atlas-accent: #d9dfe5; --atlas-1: #414b56; --atlas-2: #74818e; --atlas-3: #a8b4bf; --atlas-4: #d9dfe5; }
.mineral-atlas[data-active-mineral="copper"],
.mineral-atlas [data-atlas-mineral="copper"],
.mineral-atlas [data-table-mineral="copper"] { --atlas-accent: #e5b58d; --atlas-1: #694731; --atlas-2: #9a653f; --atlas-3: #c18a5d; --atlas-4: #e5b58d; }
.mineral-atlas[data-active-mineral="antimony"],
.mineral-atlas [data-atlas-mineral="antimony"],
.mineral-atlas [data-table-mineral="antimony"] { --atlas-accent: #c7c8d0; --atlas-1: #44464e; --atlas-2: #717582; --atlas-3: #a0a4b0; --atlas-4: #c7c8d0; }
.mineral-atlas[data-active-mineral="tungsten"],
.mineral-atlas [data-atlas-mineral="tungsten"],
.mineral-atlas [data-table-mineral="tungsten"] { --atlas-accent: #b9c0c6; --atlas-1: #3d4349; --atlas-2: #616b73; --atlas-3: #8c979f; --atlas-4: #b9c0c6; }
.mineral-atlas[data-active-mineral="lithium"],
.mineral-atlas [data-atlas-mineral="lithium"],
.mineral-atlas [data-table-mineral="lithium"] { --atlas-accent: #edf0ef; --atlas-1: #4b5051; --atlas-2: #80898b; --atlas-3: #b8c1c1; --atlas-4: #edf0ef; }
.mineral-atlas[data-active-mineral="cobalt"],
.mineral-atlas [data-atlas-mineral="cobalt"],
.mineral-atlas [data-table-mineral="cobalt"] { --atlas-accent: #b9cbe0; --atlas-1: #35465b; --atlas-2: #5f7793; --atlas-3: #8da4bf; --atlas-4: #b9cbe0; }
.mineral-atlas[data-active-mineral="nickel"],
.mineral-atlas [data-atlas-mineral="nickel"],
.mineral-atlas [data-table-mineral="nickel"] { --atlas-accent: #cecbbf; --atlas-1: #4a4943; --atlas-2: #78766a; --atlas-3: #a7a394; --atlas-4: #cecbbf; }
.mineral-atlas[data-active-mineral="graphite"],
.mineral-atlas [data-atlas-mineral="graphite"],
.mineral-atlas [data-table-mineral="graphite"] { --atlas-accent: #bcbcc2; --atlas-1: #414146; --atlas-2: #626269; --atlas-3: #909097; --atlas-4: #bcbcc2; }
.mineral-atlas { width: var(--sw-shell); margin: 0 auto; padding: 54px 0 68px; font-family: var(--sw-sans); }
html.mineral-atlas-open { overflow: hidden; }
.mineral-atlas [hidden] { display: none !important; }
.mineral-atlas button, .mineral-atlas input { font: inherit; }
.mineral-atlas button { cursor: pointer; }
.mineral-atlas button:disabled { opacity: .4; cursor: default; }
.mineral-atlas__header { display: flex; justify-content: space-between; gap: 40px; align-items: center; margin-bottom: 36px; }
.mineral-atlas__eyebrow { margin: 0 0 14px; font: 10px/1.5 var(--sw-mono); letter-spacing: .13em; text-transform: uppercase; color: #aab8c4; }
.mineral-atlas__eyebrow > span { padding: 0 9px; color: #626d78; }
.mineral-atlas__header h1 { margin: 0; font: 400 clamp(38px, 4.4vw, 66px)/1.04 var(--sw-serif); letter-spacing: -.045em; }
.mineral-atlas__header h1 em { color: var(--atlas-accent); font-weight: 400; }
.mineral-atlas__intro { max-width: 660px; margin: 20px 0 0; font-size: 14px; line-height: 1.75; color: #b4bec8; }
.mineral-atlas__edition { min-width: 150px; padding-left: 28px; border-left: 1px solid var(--sw-line); display: grid; gap: 8px; }
.mineral-atlas__edition > span, .mineral-atlas__edition small { color: #99a8b5; font: 10px/1.65 var(--sw-mono); text-transform: uppercase; letter-spacing: .07em; }
.mineral-atlas__edition strong { font: 400 42px/1.4 var(--sw-serif); }
.mineral-atlas__edition i { font-style: normal; color: #525e69; }
.mineral-atlas__workspace { border: 1px solid #39444e; background: #10151b; }
.mineral-atlas__toolbar { display: flex; flex-direction: column; align-items: stretch; border-bottom: 1px solid #39444e; background: #141a21; }
.mineral-atlas__metals { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.mineral-atlas__views { display: flex; gap: 0; justify-content: flex-end; border-top: 1px solid #343e48; }
.mineral-atlas__metals button { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 8px; min-height: 66px; padding: 12px; text-align: left; border: 0; border-right: 1px solid #343e48; border-bottom: 2px solid color-mix(in srgb, var(--atlas-3) 65%, transparent); background: color-mix(in srgb, var(--atlas-accent) 6%, #141a21); color: var(--atlas-accent); }
.mineral-atlas__metals b { font: 400 25px/1 var(--sw-serif); color: var(--atlas-accent); }
.mineral-atlas__metals span { font-size: 12px; }
.mineral-atlas__metals button:hover { background: color-mix(in srgb, var(--atlas-accent) 13%, #141a21); }
.mineral-atlas__metals [aria-pressed=true] { background: color-mix(in srgb, var(--atlas-accent) 19%, #141a21); color: color-mix(in srgb, var(--atlas-accent) 45%, #fff); border-bottom-color: var(--atlas-accent); box-shadow: inset 0 2px var(--atlas-accent); }
.mineral-atlas__metals [aria-pressed=true] span { font-weight: 600; }
.mineral-atlas__views { gap: 5px; align-items: center; padding: 10px 18px; }
.mineral-atlas__views button { border: 1px solid transparent; color: #9daab5; background: none; padding: 8px 12px; font-size: 11px; min-height: 40px; }
.mineral-atlas__views [aria-pressed=true] { border-color: color-mix(in srgb, var(--atlas-accent) 60%, #141a21); color: var(--atlas-accent); background: color-mix(in srgb, var(--atlas-accent) 10%, #141a21); }
.mineral-atlas__searchbar { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 17px 22px; border-bottom: 1px solid #303b46; }
.mineral-atlas__search { display: flex; align-items: center; gap: 15px; flex: 1; max-width: 630px; }
.mineral-atlas__search label { font: 10px/1.5 var(--sw-mono); color: #adbac6; white-space: nowrap; }
.mineral-atlas__search > div { display: flex; flex: 1; min-width: 0; }
.mineral-atlas__search input { min-width: 0; width: 100%; height: 40px; border: 1px solid #425364; background: #0c1219; color: #eff5f9; padding: 8px 12px; font-size: 12px; border-radius: 0; }
.mineral-atlas__search input::placeholder { color: #93a2ae; }
.mineral-atlas__search button { flex-shrink: 0; border: 1px solid color-mix(in srgb, var(--atlas-accent) 45%, #141a21); border-left: 0; background: color-mix(in srgb, var(--atlas-accent) 10%, #141a21); color: var(--atlas-accent); padding: 8px 13px; font-size: 11px; }
.mineral-atlas__search button span { margin-left: 8px; }
.mineral-atlas__period { font: 10px/1.5 var(--sw-mono); color: #a7b5c0; text-align: right; margin: 0; }
.mineral-atlas__status { margin: 0; padding: 12px 22px; color: #c6d1db; font-size: 12px; border-bottom: 1px solid #39444e; }
.mineral-atlas__status:empty { border: 0; padding: 0; }
.mineral-atlas__canvas-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; }
.mineral-atlas__map-column { min-width: 0; padding: 21px 22px 18px; background: radial-gradient(ellipse at 45% 40%, #1a2632 0, #10171f 68%); }
.mineral-atlas__map-caption { display: flex; justify-content: space-between; gap: 10px; font: 9px/1.5 var(--sw-mono); text-transform: uppercase; letter-spacing: .1em; color: #9caeba; margin-bottom: 13px; }
.mineral-atlas__map-caption span:last-child { color: #788e9f; }
.mineral-atlas__viewport { position: relative; overflow: hidden; aspect-ratio: 1200/660; }
.mineral-atlas__map { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.mineral-atlas__map.is-zoomed { cursor: grab; touch-action: none; }
.mineral-atlas__ocean { fill: #121e29; stroke: #2c4051; stroke-width: .7; }
.mineral-atlas__map.is-dragging { cursor: grabbing; }
.mineral-atlas__country { fill: #222e39; stroke: #0e1822; stroke-width: .65; stroke-linejoin: round; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill 120ms; }
.mineral-atlas__country[data-level="1"] { fill: var(--atlas-1); }
.mineral-atlas__country[data-level="2"] { fill: var(--atlas-2); }
.mineral-atlas__country[data-level="3"] { fill: var(--atlas-3); }
.mineral-atlas__country[data-level="4"] { fill: var(--atlas-4); }
.mineral-atlas__country[data-level="bounded"] { fill: var(--atlas-2); stroke: var(--atlas-accent); stroke-dasharray: 2 2; }
.mineral-atlas__country:hover, .mineral-atlas__country:focus-visible, .mineral-atlas__country.is-selected { fill: color-mix(in srgb, var(--atlas-accent) 60%, #fff); stroke: var(--atlas-accent); stroke-width: 1.4; outline: none; }
.mineral-atlas__map .mineral-atlas__graticule { fill: none; stroke: #68839b; stroke-width: .55; opacity: .2; pointer-events: none; }
.mineral-atlas__zoom { position: absolute; right: 0; bottom: 6px; display: flex; border: 1px solid #405261; background: #101a24ed; }
.mineral-atlas__zoom button { min-width: 34px; height: 34px; padding: 0 9px; background: none; border: 0; border-right: 1px solid #405261; color: var(--atlas-accent); font-size: 19px; }
.mineral-atlas__zoom button:last-child { border: 0; font-size: 10px; }
.mineral-atlas__map-tip { position: absolute; pointer-events: none; top: 8px; left: 8px; max-width: calc(100% - 16px); padding: 8px 11px; background: #0b1118ed; border: 1px solid var(--atlas-3); font-size: 11px; color: #f1f5f8; box-shadow: 0 4px 16px #0006; }
.mineral-atlas__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; margin-top: 14px; color: #b1c0cc; font: 9px/1.6 var(--sw-mono); }
.mineral-atlas__legend > span { display: inline-flex; align-items: center; gap: 5px; }
.mineral-atlas__legend > span:first-child { flex-basis: 100%; color: #8fa1af; }
.mineral-atlas__legend i { display: inline-block; width: 15px; height: 10px; border: 1px solid #5e7384; background: #222e39; }
.mineral-atlas__legend [data-level="1"] { background: var(--atlas-1); }
.mineral-atlas__legend [data-level="2"] { background: var(--atlas-2); }
.mineral-atlas__legend [data-level="3"] { background: var(--atlas-3); }
.mineral-atlas__legend [data-level="4"] { background: var(--atlas-4); }
.mineral-atlas__legend [data-level="bounded"] { background: var(--atlas-2); border: 1px dashed var(--atlas-accent); }
.mineral-atlas__map-note { margin: 13px 0 0; color: #92a4b3; font-size: 10px; }
.mineral-atlas__summary { padding: 25px 23px; border-left: 1px solid #35424e; background: #151d25; }
.mineral-atlas__summary h2 { font: 400 20px/1.3 var(--sw-serif); margin: 0; color: #d8e2e9; }
.mineral-atlas__world-value { margin: 15px 0 0; font: 400 clamp(34px, 3.1vw, 48px)/1.1 var(--sw-serif); letter-spacing: -.04em; color: var(--atlas-accent); overflow-wrap: anywhere; }
.mineral-atlas__unit { margin: 5px 0 0; font: 10px/1.5 var(--sw-mono); color: #b3c2ce; }
.mineral-atlas__world-note, .mineral-atlas__coverage { color: #9bacb9; font-size: 10px; line-height: 1.6; margin: 15px 0 0; }
.mineral-atlas__leaders { border-top: 1px solid #3a4753; margin-top: 23px; padding-top: 17px; }
.mineral-atlas__leaders h3 { font: 10px/1.5 var(--sw-mono); color: #aebfcd; margin: 0 0 10px; }
.mineral-atlas__leaders ol { list-style: none; padding: 0; margin: 0; }
.mineral-atlas__leaders button { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px; border: 0; border-bottom: 1px solid #2d3945; background: none; color: #e0e8ee; padding: 9px 0; font-size: 11px; text-align: left; }
.mineral-atlas__leaders small { font: 9px var(--sw-mono); color: #92a3b1; margin-right: 10px; }
.mineral-atlas__leaders b { font: 10px var(--sw-mono); color: var(--atlas-accent); white-space: nowrap; }
.mineral-atlas__leaders button:hover { color: #fff; background: color-mix(in srgb, var(--atlas-accent) 12%, #141a21); }
.mineral-atlas__context { display: grid; grid-template-columns: 1fr 1.6fr auto; align-items: center; gap: 35px; margin: 30px 0; padding: 24px 0; border-block: 1px solid var(--sw-line); }
.mineral-atlas__context .mineral-atlas__eyebrow { font-size: 9px; margin: 0 0 8px; display: block; }
.mineral-atlas__context h2 { font: 400 23px/1.25 var(--sw-serif); margin: 0; }
.mineral-atlas__context p { margin: 0; font-size: 12px; line-height: 1.8; color: #acbbc6; }
.mineral-atlas__context a { color: #d5e0e8; font-size: 11px; text-underline-offset: 5px; white-space: nowrap; }
.mineral-atlas__register { border: 1px solid #3c4954; background: #111820; }
.mineral-atlas__register > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 21px 24px; cursor: pointer; }
.mineral-atlas__register > summary::-webkit-details-marker { display: none; }
.mineral-atlas__register summary > span:first-child { font: 400 23px/1.3 var(--sw-serif); }
.mineral-atlas__register summary > span:last-child { color: #a9bac7; font: 10px/1.5 var(--sw-mono); }
.mineral-atlas__register summary b { display: inline-block; font: 400 20px/1 var(--sw-sans); margin-left: 12px; }
.mineral-atlas__register[open] summary b { transform: rotate(45deg); }
.mineral-atlas__register > p { color: #b3c1cb; font-size: 12px; margin: 0 24px 24px; }
.mineral-atlas__table-wrap { padding: 0 24px 24px; overflow: auto; }
.mineral-atlas__table-wrap table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 0; min-width: 500px; }
.mineral-atlas__table-wrap caption { text-align: left; font: 400 25px/1.4 var(--sw-serif); padding: 12px 0; color: var(--atlas-accent); }
.mineral-atlas__table-wrap th, .mineral-atlas__table-wrap td { padding: 10px 12px; text-align: right; border-bottom: 1px solid #303f4c; color: #c4d0db; }
.mineral-atlas__table-wrap th { color: #a4b6c5; font-size: 10px; }
.mineral-atlas__table-wrap :is(th,td):first-child { text-align: left; padding-left: 0; }
.mineral-atlas__table-wrap td button { color: #e3edf5; border: 0; border-bottom: 1px dotted #8eabbf; padding: 0; background: none; text-align: left; }
.mineral-atlas__table-wrap .is-total :is(th,td) { color: var(--atlas-accent); border-top: 1px solid var(--atlas-3); font-weight: 600; }
.mineral-atlas__table-note { font-size: 11px; color: #acbcc9; }
.mineral-atlas__sources { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; margin-top: 29px; }
.mineral-atlas__sources p, .mineral-atlas__sources li { margin: 6px 0; font-size: 11px; line-height: 1.75; color: #a1b2c0; }
.mineral-atlas__sources ul { margin: 0 0 12px; padding: 0; list-style: none; }
.mineral-atlas__sources a { color: #c6d7e4; text-underline-offset: 3px; }
.mineral-atlas__notice { padding: 16px; border: 1px solid #526879; font-size: 12px; }
.mineral-atlas__dialog { width: min(600px, calc(100vw - 36px)); max-height: min(850px, calc(100dvh - 48px)); padding: 0; border: 1px solid var(--atlas-3); background: #141d26; color: #e6eef4; box-shadow: 0 30px 120px #0009; overflow: auto; overscroll-behavior: contain; }
.mineral-atlas__dialog::backdrop { background: #050a10c9; backdrop-filter: blur(3px); }
.mineral-atlas__dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; z-index: 2; top: 0; padding: 12px 25px; background: color-mix(in srgb, var(--atlas-accent) 9%, #141d26); border-bottom: 1px solid color-mix(in srgb, var(--atlas-accent) 35%, #141d26); }
.mineral-atlas__dialog-bar > span { color: #b2c6d6; font: 9px/1.5 var(--sw-mono); text-transform: uppercase; letter-spacing: .08em; }
.mineral-atlas__dialog-bar b { margin-left: 12px; color: var(--atlas-accent); }
.mineral-atlas__dialog-bar button { border: 0; color: #d8e5ef; background: transparent; font-size: 11px; min-height: 32px; }
.mineral-atlas__dialog-bar button span { font-size: 21px; margin-left: 12px; }
.mineral-atlas__record { padding: 28px 30px 32px; }
.mineral-atlas__record h2 { font: 400 40px/1.12 var(--sw-serif); letter-spacing: -.03em; margin: 0 0 20px; overflow-wrap: anywhere; }
.mineral-atlas__record .mineral-atlas__metals { grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #3a5062; margin-bottom: 25px; }
.mineral-atlas__record .mineral-atlas__metals button { min-height: 50px; padding: 10px 8px; }
.mineral-atlas__record .mineral-atlas__metals span { font-size: 11px; }
.mineral-atlas__record .mineral-atlas__metals button:last-child { border-right: 0; }
.mineral-atlas__record-value { font: 400 clamp(36px, 6vw, 61px)/1.1 var(--sw-serif); letter-spacing: -.04em; margin: 6px 0 0; overflow-wrap: anywhere; color: var(--atlas-accent); }
.mineral-atlas__record-value.is-unavailable { font-size: 32px; letter-spacing: -.02em; }
.mineral-atlas__record-source { font-size: 10px; color: #aec3d2; margin: 13px 0 0; }
.mineral-atlas__record-source a { color: var(--atlas-accent); text-underline-offset: 3px; }
.mineral-atlas__record-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; border-block: 1px solid #3f5262; padding: 20px 0; margin: 23px 0; }
.mineral-atlas__record-grid dt { color: #9cb1c1; font: 10px/1.5 var(--sw-mono); }
.mineral-atlas__record-grid dd { color: var(--atlas-accent); font: 400 24px/1.35 var(--sw-serif); margin: 5px 0 0; }
.mineral-atlas__record-grid small { font: 10px var(--sw-sans); color: #a9bccb; }
.mineral-atlas__record-notes { color: #b6c8d5; font-size: 12px; line-height: 1.75; }
.mineral-atlas__record-notes ul { padding-left: 18px; }
.mineral-atlas__record-notes li { margin-top: 9px; }
.mineral-atlas__history h3 { color: #c1d2df; font: 10px/1.6 var(--sw-mono); margin: 20px 0 10px; }
.mineral-atlas__history dl { display: flex; align-items: end; gap: 10px; height: 110px; padding: 0; margin: 0; }
.mineral-atlas__history dl > div { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: end; height: 100%; }
.mineral-atlas__history dt { order: 3; font: 10px/1.5 var(--sw-mono); color: #94abbd; margin-top: 6px; }
.mineral-atlas__history dd { order: 1; margin: 0 0 4px; font: 10px/1.5 var(--sw-mono); color: #d1e1ed; }
.mineral-atlas__history i { order: 2; display: block; background: var(--atlas-2); border-top: 1px solid var(--atlas-accent); height: var(--bar-height); min-height: 2px; }
.mineral-atlas__history p { font-size: 10px; color: #9fb5c6; }
.mineral-atlas__record-footer { border-top: 1px solid #3f5262; padding-top: 17px; display: flex; gap: 16px; justify-content: space-between; align-items: center; margin-top: 23px; }
.mineral-atlas__record-footer a { font-size: 11px; color: var(--atlas-accent); text-underline-offset: 4px; }
.mineral-atlas__record-footer span { font: 9px/1.5 var(--sw-mono); color: #9cb3c4; }
.mineral-atlas__legend i:not([data-level="unknown"]) { border-color: var(--atlas-3); }
.mineral-atlas__record > .mineral-atlas__eyebrow,
.mineral-atlas [data-atlas-map-label],
.mineral-atlas__summary > .mineral-atlas__eyebrow { color: var(--atlas-accent); }
.mineral-atlas :focus-visible { outline: 2px solid var(--atlas-accent); outline-offset: 3px; }
.mineral-atlas__metals button:focus-visible { outline-offset: -5px; }
.mineral-atlas__country:focus-visible { outline: none; stroke-width: 2; }
@media (min-width: 1500px) { .mineral-atlas__canvas-layout { grid-template-columns: minmax(0,1fr) 330px; } }
@media (max-width: 1100px) { .mineral-atlas__canvas-layout { grid-template-columns: minmax(0,1fr) 250px; } .mineral-atlas__summary { padding: 22px 18px; } .mineral-atlas__searchbar { gap: 18px; } .mineral-atlas__search label { display: none; } .mineral-atlas__context { grid-template-columns: 1fr 1.5fr; gap: 20px; } .mineral-atlas__context a { grid-column: 2; } }
@media (max-width: 850px) { .mineral-atlas { padding-top: 32px; } .mineral-atlas__canvas-layout { grid-template-columns: 1fr; } .mineral-atlas__summary { border-left: 0; border-top: 1px solid #35424e; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; } .mineral-atlas__summary > :not(.mineral-atlas__leaders):not(.mineral-atlas__coverage) { grid-column: 1; } .mineral-atlas__summary .mineral-atlas__leaders { grid-column: 2; grid-row: 1 / span 5; border: 0; padding: 0; margin: 0; } .mineral-atlas__coverage { grid-column: 1 / -1; } .mineral-atlas__world-value { font-size: 43px; } .mineral-atlas__world-note { margin-top: 10px; } .mineral-atlas__summary .mineral-atlas__eyebrow { font-size: 9px; } .mineral-atlas__metals button { padding-inline: 18px; } .mineral-atlas__views { padding-inline: 10px; } .mineral-atlas__searchbar { flex-wrap: wrap; gap: 10px; } .mineral-atlas__search { max-width: none; flex-basis: 100%; } .mineral-atlas__period { text-align: left; } .mineral-atlas__sources { gap: 25px; } }
@media (max-width: 600px) { .mineral-atlas { width: calc(100% - 28px); padding: 27px 0 40px; } .mineral-atlas__header { margin-bottom: 24px; } .mineral-atlas__edition { display: none; } .mineral-atlas__header h1 { font-size: clamp(35px, 9vw, 49px); } .mineral-atlas__intro { margin-top: 14px; font-size: 12px; } .mineral-atlas__eyebrow { font-size: 9px; } .mineral-atlas__toolbar { flex-wrap: wrap; } .mineral-atlas__metals { width: 100%; } .mineral-atlas__metals button { flex: 1; justify-content: center; min-height: 52px; } .mineral-atlas__metals button:last-child { border-right: 0; } .mineral-atlas__views { width: 100%; border-top: 1px solid #35424e; padding: 7px; } .mineral-atlas__views button { flex: 1; font-size: 10px; } .mineral-atlas__searchbar { padding: 13px; } .mineral-atlas__search input { padding-inline: 9px; font-size: 11px; } .mineral-atlas__search button { padding-inline: 9px; font-size: 10px; } .mineral-atlas__search button span { display: none; } .mineral-atlas__period { font-size: 9px; } .mineral-atlas__map-column { padding: 16px 12px; } .mineral-atlas__map-caption { font-size: 8px; } .mineral-atlas__viewport { aspect-ratio: 1.45; } .mineral-atlas__legend { gap: 8px 11px; font-size: 8px; } .mineral-atlas__map-note { font-size: 9px; } .mineral-atlas__summary { padding: 20px 15px; gap: 0 15px; } .mineral-atlas__summary h2 { font-size: 18px; } .mineral-atlas__world-value { font-size: 36px; } .mineral-atlas__unit { font-size: 9px; } .mineral-atlas__leaders h3 { font-size: 9px; } .mineral-atlas__leaders button { font-size: 10px; } .mineral-atlas__leaders small { display: none; } .mineral-atlas__leaders b { font-size: 9px; } .mineral-atlas__context { grid-template-columns: 1fr; gap: 16px; margin-block: 23px; } .mineral-atlas__context a { grid-column: 1; } .mineral-atlas__sources { grid-template-columns: 1fr; gap: 15px; } .mineral-atlas__register > summary { padding: 17px 15px; align-items: start; } .mineral-atlas__register summary > span:first-child { font-size: 19px; } .mineral-atlas__register summary > span:last-child { font-size: 8px; text-align: right; } .mineral-atlas__register > p { margin-inline: 15px; } .mineral-atlas__table-wrap { padding-inline: 15px; } .mineral-atlas__dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); } .mineral-atlas__dialog-bar { padding-inline: 18px; } .mineral-atlas__record { padding: 23px 20px; } .mineral-atlas__record h2 { font-size: 35px; } .mineral-atlas__record-value { font-size: 45px; } .mineral-atlas__record-grid { gap: 15px; } .mineral-atlas__record-grid dd { font-size: 22px; } .mineral-atlas__record-footer { flex-wrap: wrap; } }
@media (max-width: 1100px) { .mineral-atlas__toolbar > .mineral-atlas__metals { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .mineral-atlas__toolbar > .mineral-atlas__metals, .mineral-atlas__record .mineral-atlas__metals { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mineral-atlas__metals button { padding: 10px 8px; } .mineral-atlas__summary { display: block; } .mineral-atlas__summary .mineral-atlas__leaders { margin-top: 23px; padding-top: 20px; border-top: 1px solid #35424e; } .mineral-atlas__leaders button { font-size: 12px; } .mineral-atlas__leaders b { font-size: 10px; } .mineral-atlas__world-value { font-size: 42px; } }
@media (prefers-reduced-motion: reduce) { .mineral-atlas__country { transition: none; } }
@media print { .mineral-atlas__toolbar, .mineral-atlas__searchbar, .mineral-atlas__zoom, .mineral-atlas__dialog { display: none !important; } .mineral-atlas { width: 100%; } .mineral-atlas__register { content-visibility: visible; } }

#home-atlas-panel .mineral-atlas {
    width: 100%;
    padding: 0;
}

#home-atlas-panel :is([data-active-mineral="gold"], [data-atlas-mineral="gold"], [data-table-mineral="gold"]) {
    --atlas-accent: #e8c67e;
    --atlas-3: #c5a36c;
}

#home-atlas-panel :is([data-active-mineral="aluminum"], [data-atlas-mineral="aluminum"], [data-table-mineral="aluminum"]) {
    --atlas-accent: #d6e2eb;
    --atlas-3: #aebfcf;
}

#home-atlas-panel :is([data-active-mineral="rare-earths"], [data-atlas-mineral="rare-earths"], [data-table-mineral="rare-earths"]) {
    --atlas-accent: #afd6c5;
    --atlas-3: #82aa9a;
}

#home-atlas-panel :is([data-active-mineral="lead"], [data-atlas-mineral="lead"], [data-table-mineral="lead"]) {
    --atlas-accent: #bcb9c3;
    --atlas-3: #99949f;
}

#home-atlas-panel :is([data-active-mineral="zinc"], [data-atlas-mineral="zinc"], [data-table-mineral="zinc"]) {
    --atlas-accent: #c2d6da;
    --atlas-3: #95acb1;
}

#home-atlas-panel .mineral-atlas__map-column {
    --atlas-accent: var(--sw-warm, #c8d1da);
    --atlas-map-base: #17191c;
    --atlas-unknown: color-mix(in srgb, var(--atlas-accent) 10%, var(--atlas-map-base));
    --atlas-1: color-mix(in srgb, var(--atlas-accent) 25%, var(--atlas-map-base));
    --atlas-2: color-mix(in srgb, var(--atlas-accent) 48%, var(--atlas-map-base));
    --atlas-3: color-mix(in srgb, var(--atlas-accent) 73%, var(--atlas-map-base));
    --atlas-4: color-mix(in srgb, var(--atlas-accent) 90%, #fff);
    --atlas-border: color-mix(in srgb, var(--atlas-accent) 38%, var(--atlas-map-base));
}

@media (forced-colors: none) {
    #home-atlas-panel .mineral-atlas__map-column {
        --atlas-map-tint: color-mix(in srgb, var(--sw-bg, #090a0c) 54%, transparent);
        background: linear-gradient(var(--atlas-map-tint), var(--atlas-map-tint)),
            linear-gradient(var(--atlas-map-shade, rgb(5 7 9 / 50%)), var(--atlas-map-shade, rgb(5 7 9 / 50%))),
            var(--mast-base, #090a0c) url("/assets/images/doom-line-header-texture.png") center / cover no-repeat;
    }
}

#home-atlas-panel .mineral-atlas__country[data-level="unknown"]:not(:hover, :focus-visible, .is-selected) {
    fill: var(--atlas-unknown);
}

#home-atlas-panel .mineral-atlas__country:not(:hover, :focus-visible, .is-selected, [data-level="bounded"]) {
    stroke: var(--atlas-border);
}

#home-atlas-panel .mineral-atlas__legend [data-level="unknown"] {
    background: var(--atlas-unknown);
}

#home-atlas-panel .mineral-atlas__legend i:not([data-level="bounded"]) {
    border-color: var(--atlas-border);
}

#home-atlas-panel :is(.mineral-atlas__map-caption, .mineral-atlas__legend, .mineral-atlas__map-note) {
    color: var(--sw-ink-soft, #c4d0db);
}

#home-atlas-panel :is(.mineral-atlas__map-caption span:last-child, .mineral-atlas__legend > span:first-child) {
    color: var(--sw-muted, #a9bac7);
}

#home-atlas-panel .mineral-atlas__map-footer .mineral-atlas__zoom {
    border-color: var(--sw-line-bright, #405261);
    background: var(--sw-bg-raised, #12161b);
}

#home-atlas-panel .mineral-atlas__zoom button {
    border-color: var(--sw-line, #405261);
}

#home-atlas-panel .mineral-atlas__viewport {
    aspect-ratio: 1200 / 508;
}

/* Crop unused canvas vertically while preserving the SVG's pan and zoom scale. */
#home-atlas-panel .mineral-atlas__viewport > .mineral-atlas__map {
    position: absolute;
    inset-inline: 0;
    top: 50%;
    height: auto;
    aspect-ratio: 1200 / 620;
    transform: translateY(-50%);
}

#home-atlas-panel .mineral-atlas__map-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 8px;
}

#home-atlas-panel .mineral-atlas__map-footer .mineral-atlas__legend {
    flex: 1 1 170px;
    margin-top: 0;
}

#home-atlas-panel .mineral-atlas__map-footer .mineral-atlas__zoom {
    position: static;
    margin-inline-start: auto;
}

#home-atlas-panel .mineral-atlas__searchbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px clamp(8px, 2vw, 22px);
    padding-block: 12px;
}

#home-atlas-panel .mineral-atlas__searchbar .mineral-atlas__period {
    display: none;
}

#home-atlas-panel .mineral-atlas__searchbar .mineral-atlas__views {
    border: 0;
    padding: 0;
}

#home-atlas-panel .mineral-atlas__views button {
    white-space: nowrap;
}

#home-atlas-panel .mineral-atlas__source-drawer {
    margin-top: 18px;
    border: 1px solid var(--sw-line);
    background: var(--sw-bg-raised);
}

#home-atlas-panel .mineral-atlas__source-drawer > summary {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 14px clamp(14px, 2vw, 24px);
    list-style: none;
    cursor: pointer;
}

#home-atlas-panel .mineral-atlas__source-drawer > summary::-webkit-details-marker {
    display: none;
}

#home-atlas-panel .mineral-atlas__source-drawer > summary span:last-child {
    color: var(--sw-muted);
    font: 11px/1.4 var(--sw-mono);
}

#home-atlas-panel .mineral-atlas__source-drawer > summary::after {
    content: "";
    width: 6px;
    height: 6px;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
}

#home-atlas-panel .mineral-atlas__source-drawer[open] > summary::after {
    transform: rotate(225deg);
}

#home-atlas-panel .mineral-atlas__source-drawer > :is(.mineral-atlas__context, .mineral-atlas__sources) {
    margin: 0;
    padding: 18px clamp(14px, 2vw, 24px);
    border-block: 0;
    border-top: 1px solid var(--sw-line);
}

#home-atlas-panel .mineral-atlas__faq-link {
    display: inline-flex;
    align-items: center;
    gap: .4em;
}

#home-atlas-panel .mineral-atlas__source-drawer > .mineral-atlas__register {
    border: 0;
    border-top: 1px solid var(--sw-line);
    background: transparent;
}

#home-atlas-panel .mineral-atlas__toolbar > .mineral-atlas__metals {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

#home-atlas-panel .mineral-atlas__record .mineral-atlas__metals {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (min-width: 900px) and (max-width: 1279px) {
    #home-atlas-panel .mineral-atlas__toolbar > .mineral-atlas__metals {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    #home-atlas-panel .mineral-atlas__toolbar > .mineral-atlas__metals {
        grid-template-columns: repeat(13, minmax(0, 1fr));
    }

    #home-atlas-panel .mineral-atlas__toolbar .mineral-atlas__metals button {
        gap: 5px;
        padding-inline: 6px;
    }

    #home-atlas-panel .mineral-atlas__toolbar .mineral-atlas__metals b {
        font-size: 22px;
    }
}

@media (max-width: 600px) {
    #home-atlas-panel .mineral-atlas__toolbar > .mineral-atlas__metals,
    #home-atlas-panel .mineral-atlas__record .mineral-atlas__metals {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (forced-colors: none) {
    :root:not([data-theme]) #home-atlas-panel .mineral-atlas__map-column {
        --atlas-map-base: #191919;
        --atlas-map-shade: rgb(7 7 7 / 50%);
    }

    :root:not([data-theme]) #home-atlas-panel :is(
        .mineral-atlas:not([data-active-mineral="copper"], [data-active-mineral="gold"], [data-active-mineral="rare-earths"]),
        [data-atlas-mineral]:not([data-atlas-mineral="copper"], [data-atlas-mineral="gold"], [data-atlas-mineral="rare-earths"]),
        [data-table-mineral]:not([data-table-mineral="copper"], [data-table-mineral="gold"], [data-table-mineral="rare-earths"])
    ) {
        --atlas-accent: var(--sw-warm);
        --atlas-2: #787878;
        --atlas-3: #ababab;
    }

    :root:not([data-theme]) #home-atlas-panel :is(.mineral-atlas__workspace, .mineral-atlas__search input, .mineral-atlas__map-tip) {
        background: var(--sw-bg);
        border-color: var(--sw-line-bright);
        color: var(--sw-ink);
    }

    :root:not([data-theme]) #home-atlas-panel :is(.mineral-atlas__toolbar, .mineral-atlas__summary, .mineral-atlas__dialog) {
        background: var(--sw-bg-raised);
        border-color: var(--sw-line);
        color: var(--sw-ink);
    }

    :root:not([data-theme]) #home-atlas-panel :is(
        .mineral-atlas__dialog-bar, .mineral-atlas__metals button,
        .mineral-atlas__views [aria-pressed="true"], .mineral-atlas__search button
    ) {
        background: var(--sw-panel);
        border-color: var(--sw-line);
    }

    :root:not([data-theme]) #home-atlas-panel .mineral-atlas__metals [aria-pressed="true"] {
        background: var(--sw-panel-soft);
        border-bottom-color: var(--atlas-accent);
    }

    :root:not([data-theme]) #home-atlas-panel :is(
        .mineral-atlas__metals button:hover, .mineral-atlas__views [aria-pressed="true"],
        .mineral-atlas__leaders button:hover
    ) { background: var(--sw-panel-soft); }

    :root:not([data-theme]) #home-atlas-panel :is(
        .mineral-atlas__searchbar, .mineral-atlas__status, .mineral-atlas__leaders,
        .mineral-atlas__leaders button, .mineral-atlas__record .mineral-atlas__metals,
        .mineral-atlas__record-grid, .mineral-atlas__record-footer, .mineral-atlas__table-wrap :is(th, td)
    ) { border-color: var(--sw-line); }

    :root:not([data-theme]) #home-atlas-panel :is(
        .mineral-atlas__eyebrow, .mineral-atlas__views button[aria-pressed="false"], .mineral-atlas__search label,
        .mineral-atlas__unit, .mineral-atlas__world-note, .mineral-atlas__coverage, .mineral-atlas__leaders h3,
        .mineral-atlas__leaders small, .mineral-atlas__dialog-bar > span, .mineral-atlas__record-source,
        .mineral-atlas__record-grid :is(dt, small), .mineral-atlas__record-notes, .mineral-atlas__history :is(h3, dt, p),
        .mineral-atlas__record-footer span, .mineral-atlas__context p, .mineral-atlas__register > p,
        .mineral-atlas__register summary > span:last-child, .mineral-atlas__table-note, .mineral-atlas__sources :is(p, li)
    ) { color: var(--sw-muted); }

    :root:not([data-theme]) #home-atlas-panel :is(
        .mineral-atlas__summary h2, .mineral-atlas__leaders button, .mineral-atlas__dialog-bar button,
        .mineral-atlas__history dd, .mineral-atlas__table-wrap :is(th, td, td button),
        .mineral-atlas__context a, .mineral-atlas__sources a
    ) { color: var(--sw-ink-soft); }

    :root:not([data-theme]) #home-atlas-panel .mineral-atlas__search input::placeholder { color: var(--sw-faint); }
    :root:not([data-theme]) #home-atlas-panel .mineral-atlas__dialog::backdrop { background: rgb(8 8 8 / 79%); }
}

#home-atlas-panel .mineral-atlas__toolbar button.atlas-mineral-tile {
    display: grid;
    align-content: start;
    justify-content: start;
    gap: 4px;
    min-height: 98px;
    padding: 9px clamp(7px, .85vw, 14px) 10px;
}

#home-atlas-panel .mineral-atlas__toolbar .atlas-mineral-tile__class {
    color: var(--sw-ink-soft);
    font: 600 9px/1 var(--sw-mono);
    letter-spacing: .13em;
    text-transform: uppercase;
}

#home-atlas-panel .mineral-atlas__toolbar .atlas-mineral-tile b {
    font: 700 clamp(23px, 2vw, 32px)/1 var(--sw-mono);
    letter-spacing: -.055em;
}

#home-atlas-panel .mineral-atlas__toolbar .atlas-mineral-tile__name {
    color: var(--sw-ink);
    font-size: 11px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

@media screen and (forced-colors: none) {
    #home-atlas-panel .mineral-atlas__toolbar .atlas-mineral-tile {
        --atlas-material-shade: 56%;
        --atlas-material-active-shade: 44%;
        position: relative;
        isolation: isolate;
    }

    #home-atlas-panel .mineral-atlas__toolbar .atlas-mineral-tile:is(
        [data-atlas-mineral="silver"], [data-atlas-mineral="antimony"], [data-atlas-mineral="tungsten"],
        [data-atlas-mineral="lithium"], [data-atlas-mineral="nickel"], [data-atlas-mineral="graphite"],
        [data-atlas-mineral="lead"], [data-atlas-mineral="zinc"]
    ) {
        --atlas-material-shade: 42%;
        --atlas-material-active-shade: 34%;
    }

    #home-atlas-panel .mineral-atlas__toolbar .atlas-mineral-tile::before {
        position: absolute;
        z-index: -1;
        inset: 2px 0 0;
        background:
            linear-gradient(90deg, rgb(8 9 10 / 94%), rgb(8 9 10 / 80%) 43%, rgb(8 9 10 / 68%) 65%, rgb(8 9 10 / var(--atlas-material-shade))),
            url("/assets/images/atlas-material-textures-v1.png") var(--atlas-material-x) var(--atlas-material-y) / 400% 400% no-repeat;
        pointer-events: none;
        content: "";
    }

    #home-atlas-panel .mineral-atlas__toolbar .atlas-mineral-tile::after {
        position: absolute;
        inset: 8px 8px auto auto;
        width: 7px;
        height: 7px;
        border-block-start: 1px solid var(--atlas-accent);
        border-inline-end: 1px solid var(--atlas-accent);
        opacity: .48;
        pointer-events: none;
        content: "";
    }

    #home-atlas-panel .mineral-atlas__toolbar .atlas-mineral-tile:is(:hover, :focus-visible, [aria-pressed="true"]) {
        --atlas-material-shade: var(--atlas-material-active-shade);
    }

    #home-atlas-panel .mineral-atlas__toolbar .atlas-mineral-tile[aria-pressed="true"]::after {
        opacity: 1;
    }
}

@media (max-width: 1100px) {
    #home-atlas-panel .mineral-atlas__search label {
        display: block;
        position: absolute;
        inline-size: 1px;
        block-size: 1px;
        margin: -1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
}

@media (max-width: 500px) {
    #home-atlas-panel .mineral-atlas__searchbar {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
}
