/* Article: can a local AI assistant tell which size fraction carries the most copper? Shared tokens and the header, footer, contents row, chips and buttons come from /site.css. */

/* cover: the article's core in its tray */
.tray { margin-top: clamp(8px, 2vw, 20px); }
.tray .ticks {
  height: 12px;
  background:
    repeating-linear-gradient(to right, rgb(var(--ink) / .55) 0 1px, transparent 1px 60px) left bottom / 100% 12px no-repeat,
    repeating-linear-gradient(to right, rgb(var(--ink) / .28) 0 1px, transparent 1px 12px) left bottom / 100% 6px no-repeat;
}
.tray .cover { display: block; width: 100%; height: clamp(84px, 15vw, 150px); object-fit: cover; background: rgb(var(--sand-light)); }
.traymeta { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 10px 0 0; }
.traymeta b { color: rgb(var(--brand)); font-weight: 600; }
.tagrow { margin-top: 12px; }

.opening { padding: clamp(28px, 6vw, 60px) 0 clamp(8px, 2vw, 20px); }
.opening h1 { margin: 0; max-width: 21ch; font-size: clamp(31px, 5.8vw, 62px); line-height: 1.02; letter-spacing: -.038em; font-weight: 700; text-wrap: balance; }
.intro { margin: 10px 0 0; max-width: 40ch; font-size: clamp(18px, 2.4vw, 23px); line-height: 1.34; letter-spacing: -.012em; font-weight: 500; }
.intro mark { background: none; color: rgb(var(--brand)); white-space: nowrap; }
.facts { list-style: none; margin: clamp(26px, 4vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 28px; border-top: 1px solid rgb(var(--ink)); }
.facts li { padding: 14px 0 16px; border-bottom: 1px solid rgb(var(--ink) / .14); font-size: 15px; line-height: 1.45; }
.facts li span { display: block; margin-bottom: 4px; }

section.block > h2 { max-width: 22ch; }
.lede, .intro, .facts li, .says, .pair p, .checks li, .plotcap { text-wrap: pretty; }   /* no lone last word on a phone */
.says { margin: 18px 0 0; max-width: 62ch; padding-left: 14px; border-left: 3px solid rgb(var(--brand)); font-size: clamp(15.5px, 1.9vw, 17.5px); line-height: 1.5; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 8px 44px; margin-top: clamp(22px, 4vw, 36px); }
.pair h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.01em; }
.pair p { margin: 0 0 12px; max-width: 46ch; color: rgb(var(--ink) / .78); font-size: 15.5px; }


/* the figure panels */
.plot picture, .plot img, .plot svg { display: block; width: 100%; height: auto; }
.plotcap { max-width: 62ch; font-size: 13.5px; line-height: 1.45; color: rgb(var(--ink) / .68); }
.trend { margin-top: clamp(22px, 4vw, 36px); border: 1px solid rgb(var(--ink) / .16); background: #fff; }
.trend-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; padding: 11px clamp(12px, 2.4vw, 20px); background: rgb(var(--ink)); color: rgb(var(--paper)); }
.tagname, .readout { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.tagname { color: rgb(var(--paper) / .72); }
.readout { color: rgb(var(--coral)); }
.plot { padding: clamp(6px, 1.6vw, 14px); }
.trend .plotcap { margin: 0; padding: 0 clamp(12px, 2.4vw, 20px) 14px; }

.controls { display: flex; flex-wrap: wrap; align-items: end; gap: 14px 28px; padding: 14px clamp(12px, 2.4vw, 20px) 4px; }
.controls[hidden], .ctl[hidden] { display: none; }
.ctl { display: grid; gap: 8px; }
.ctl.wide { flex: 1 1 260px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { padding: 9px 15px; border: 1px solid rgb(var(--ink) / .25); border-radius: 999px; background: transparent; color: inherit; font: 600 13px/1 var(--mono); cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.chips button:hover { border-color: rgb(var(--ink)); }
.chips button[aria-pressed="true"] { background: rgb(var(--brand)); border-color: rgb(var(--brand)); color: #fff; }
.chips button:focus-visible, input[type="range"]:focus-visible { outline: 2px solid rgb(var(--brand)); outline-offset: 3px; }
.ctl output { color: rgb(var(--brand)); font-weight: 600; }
input[type="range"] { width: 100%; height: 34px; margin: 0; accent-color: rgb(var(--brand)); cursor: pointer; }

/* 04: the checks */
.checks { list-style: none; counter-reset: c; margin: clamp(20px, 4vw, 34px) 0 0; padding: 0; border-top: 1px solid rgb(var(--ink)); }
.checks li { counter-increment: c; display: grid; grid-template-columns: clamp(44px, 8vw, 76px) 1fr; padding: 16px 0; border-bottom: 1px solid rgb(var(--ink) / .14); color: rgb(var(--ink) / .76); font-size: 15.5px; }
.checks li::before { content: counter(c, decimal-leading-zero); grid-row: span 2; font: 500 13px/1.7 var(--mono); color: rgb(var(--brand)); }
.checks b { display: block; color: rgb(var(--ink)); font-size: clamp(17px, 2.4vw, 21px); letter-spacing: -.012em; font-weight: 600; }

/* method and sources */
.method .pair p b { color: rgb(var(--ink)); }
.refs { margin: 18px 0 0; padding-left: 1.4em; max-width: 72ch; font-size: 14px; line-height: 1.5; color: rgb(var(--ink) / .74); }
.refs li { margin-bottom: 8px; padding-left: 4px; }
.refs a { color: rgb(var(--brand)); overflow-wrap: anywhere; }

.cta { margin-top: clamp(44px, 9vw, 96px); padding: clamp(24px, 5vw, 52px); background: rgb(var(--ink)); color: rgb(var(--paper)); }
.cta .label { color: rgb(var(--paper) / .72); }
.cta h2 { margin: 8px 0 0; max-width: 20ch; font-size: clamp(26px, 4.4vw, 42px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.cta p { margin: 14px 0 22px; max-width: 44ch; color: rgb(var(--paper) / .72); }
.cta .btn { background: rgb(var(--brand)); color: #fff; }
.cta .btn:hover { background: rgb(var(--coral)); color: rgb(var(--ink)); }

/* between phone and desktop the phone figures are used, kept to a size where their text reads at 12 px or more */
@media (min-width: 601px) and (max-width: 760px) { .plot picture, .plot svg { max-width: 460px; margin: 0 auto; } }
@media (prefers-reduced-motion: reduce) { .chips button { transition: none; } }

/* method: the repository line */
.repo { margin: 18px 0 0; max-width: 62ch; font-size: 14.5px; color: rgb(var(--ink) / .7); }
.repo a { color: rgb(var(--brand)); }

/* 02: pick an attempt, read its reply */
.picker { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 4px clamp(12px, 2.4vw, 20px) 12px; }
.picker[hidden], .reply[hidden] { display: none; }
.chips.nums { display: grid; grid-template-columns: repeat(10, minmax(26px, 38px)); gap: 5px; }
.chips.nums button { padding: 9px 0; text-align: center; }
@media (max-width: 600px) { .picker .ctl { flex: 1 1 100%; } .chips.nums { grid-template-columns: repeat(10, 1fr); gap: 4px; } }
.reply { margin: 0 clamp(12px, 2.4vw, 20px) 16px; padding: 14px 16px 6px; border-left: 3px solid rgb(var(--brand)); background: rgb(var(--sand-light) / .55); }
.reply .label { margin: 0 0 8px; }
.reply blockquote { margin: 0 0 10px; font-size: clamp(15.5px, 1.9vw, 17px); line-height: 1.45; font-weight: 500; }
.reply ul { list-style: none; margin: 0; padding: 0; }
.reply li { margin: 0 0 8px; font-size: 14.5px; line-height: 1.45; color: rgb(var(--ink) / .8); }
.reply li b { color: rgb(var(--ink)); font-weight: 600; }
.reply li.no b { color: rgb(var(--brand)); }

/* 03: the stories the replies told about the copper's minerals */
.stories { margin-top: clamp(22px, 4vw, 36px); }
.stories ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.stories li { padding: 11px 12px; border: 1px solid rgb(var(--ink) / .16); background: #fff; }
.stories b { display: block; font-size: 16px; letter-spacing: -.01em; }
.stories span { display: block; margin-top: 4px; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--brand)); }
