/* Article: does a written skill help a local LLM read a flowsheet? Tokens, header, footer, 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(56px, 9vw, 96px); 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(20px, 4vw, 40px) 0 clamp(8px, 2vw, 16px); }
.opening h1 { margin: 0; max-width: 21ch; font-size: clamp(30px, 4.8vw, 52px); line-height: 1.02; letter-spacing: -.038em; font-weight: 700; text-wrap: balance; }
.basis { margin: clamp(18px, 3vw, 28px) 0 0; }
.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; }

section.block > h2 { max-width: 22ch; }
section.block > p.lede a, .cap a, .repo a { color: rgb(var(--brand)); }
.cap { margin: 14px 0 0; max-width: 66ch; font-size: 14.5px; line-height: 1.5; color: rgb(var(--ink) / .74); }

/* big numbers: the key facts, the 27B note and the limits */
.stats { list-style: none; margin: clamp(26px, 4vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 28px; border-top: 1px solid rgb(var(--ink)); }
.stats li { padding: 14px 0 16px; border-bottom: 1px solid rgb(var(--ink) / .14); }
.stats b { display: block; font-size: clamp(34px, 5.4vw, 52px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; color: rgb(var(--brand)); }
.opening .stats b { white-space: nowrap; }
.stats span { display: block; margin-top: 6px; max-width: 24ch; font-size: 14.5px; line-height: 1.4; color: rgb(var(--ink) / .78); }
.stats.limits b, .stats.small b { font-size: clamp(24px, 3.4vw, 32px); color: rgb(var(--ink)); }
.stats.small { margin-top: 14px; }
.opening .cap { margin-top: 16px; }
h3.sub { margin: clamp(36px, 6vw, 56px) 0 0; font-size: clamp(18px, 2.4vw, 22px); letter-spacing: -.015em; }

/* 01: the seven steps */
.steps { list-style: none; margin: clamp(22px, 4vw, 36px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 clamp(14px, 3vw, 32px); counter-reset: none; }
.steps li { padding: 16px 0 18px; border-top: 1px solid rgb(var(--ink)); }
.steps .label { margin: 10px 0 0; color: rgb(var(--brand)); }
.steps h3 { margin: 2px 0 6px; font-size: 18px; letter-spacing: -.012em; }
.steps li > p:last-child { margin: 0; max-width: 30ch; font-size: 14.5px; line-height: 1.45; color: rgb(var(--ink) / .76); }
.pic { display: block; width: 96px; height: 60px; overflow: visible; }
.p-frame { fill: #fff; stroke: rgb(var(--ink) / .5); stroke-width: 1.2; }
.p-unit { fill: rgb(var(--sand-light)); stroke: rgb(var(--ink)); stroke-width: 1.4; }
.p-flag { fill: rgb(var(--coral)); stroke: rgb(var(--ink)); stroke-width: 1.4; }
.p-line, .p-row { fill: none; stroke: rgb(var(--ink)); stroke-width: 1.4; }
.p-row { stroke: rgb(var(--ink) / .4); stroke-width: 3; stroke-linecap: round; }
.p-cut { fill: none; stroke: rgb(var(--brand)); stroke-width: 1.4; stroke-dasharray: 4 3; }
.p-tile { fill: rgb(var(--coral) / .35); stroke: rgb(var(--brand)); stroke-width: 1.6; }
.p-eye { fill: none; stroke: rgb(var(--brand)); stroke-width: 1.6; stroke-dasharray: 2 3; }
.p-lens { fill: rgb(var(--paper) / .4); stroke: rgb(var(--brand)); stroke-width: 2.4; }
.p-handle { stroke: rgb(var(--brand)); stroke-width: 4; stroke-linecap: round; }
.p-ore { fill: none; stroke: rgb(var(--brand)); stroke-width: 2.2; stroke-linejoin: round; }
.p-loop { fill: none; stroke: rgb(var(--brand)); stroke-width: 1.6; stroke-dasharray: 4 3; }
.p-tick { fill: none; stroke: rgb(var(--olive)); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }

/* 02 and 03: the figures and their controls */
.fig { margin-top: clamp(22px, 4vw, 36px); }
.controls { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-bottom: 16px; }
.controls[hidden] { display: none; }
.ctl { display: grid; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.chips button { padding: 9px 15px; border: 1px solid rgb(var(--ink) / .3); border-radius: 999px; background: transparent; color: inherit; font: 600 13px/1 var(--sans); 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(--ink)); border-color: rgb(var(--ink)); color: rgb(var(--paper)); }
.chips button:focus-visible { outline: 2px solid rgb(var(--brand)); outline-offset: 2px; }
.key { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13.5px; color: rgb(var(--ink) / .78); }
.key li { display: flex; align-items: center; gap: 8px; }
.kd { width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgb(var(--brand)); background: rgb(var(--brand)); }
.kd.no { border-color: #6B655E; background: rgb(var(--paper)); }
.kt { width: 3px; height: 16px; background: rgb(var(--ink) / .6); }
.ks { width: 13px; height: 13px; border-radius: 2px; }
.say { margin: 12px 0 0; max-width: 62ch; min-height: 3em; padding-left: 12px; border-left: 3px solid rgb(var(--brand)); font-size: 15px; line-height: 1.45; }
.dm[hidden], .gd[hidden] { display: none; }
.dots, .grid { display: block; width: 100%; height: auto; }
.dots.narrow, .grid.narrow { display: none; }

/* the grid: one square per stream of the answer key */
.cell { cursor: pointer; transition: fill .25s ease, stroke .25s ease; }
.c-both { fill: #8A847C; stroke: #8A847C; }
.c-skill { fill: rgb(var(--brand)); stroke: rgb(var(--brand)); }
.c-noskill { fill: rgb(var(--coral)); stroke: #9A5A1F; }
.c-none { fill: #fff; stroke: rgb(var(--ink) / .6); }
.c-na { fill: rgb(var(--sand-light)); stroke: rgb(var(--ink) / .6); stroke-dasharray: 2 2; }
.cell.c-none { stroke-width: 1; }
.cell.picked { stroke: rgb(var(--ink)); stroke-width: 2.5; }
.cell:focus { outline: none; }
.cell:focus-visible { stroke: rgb(var(--ink)); stroke-width: 2.5; stroke-dasharray: 3 2; }
.ks.c-both { background: #8A847C; }
.ks.c-skill { background: rgb(var(--brand)); }
.ks.c-noskill { background: rgb(var(--coral)); border: 1px solid #9A5A1F; }
.ks.c-none { background: #fff; border: 1px solid rgb(var(--ink) / .6); }
.ks.c-na { background: rgb(var(--sand-light)); border: 1px dashed rgb(var(--ink) / .6); }
.key[hidden] { display: none; }

/* method: the instruction and the cards */
.prompt { margin: clamp(20px, 4vw, 34px) 0 0; padding: clamp(16px, 3vw, 26px); background: rgb(var(--ink)); color: rgb(var(--paper) / .92); font: 400 clamp(13px, 1.6vw, 14.5px)/1.6 var(--mono); }
.prompt .label { display: block; margin-bottom: 10px; color: rgb(var(--coral)); }
.cards { list-style: none; margin: clamp(20px, 4vw, 34px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 28px; }
.cards li { padding: 14px 0 18px; border-top: 1px solid rgb(var(--ink)); font-size: 14.5px; line-height: 1.45; color: rgb(var(--ink) / .78); }
.cards b { display: block; margin: 4px 0 6px; font-size: 17px; letter-spacing: -.01em; color: rgb(var(--ink)); }
.gpus { display: flex; gap: 4px; margin: 0 0 8px; }
.gpus i { width: 30px; height: 16px; background: rgb(var(--ink)); border-bottom: 3px solid rgb(var(--coral)); }
.repo { margin: 14px 0 0; max-width: 62ch; font-size: 14.5px; color: rgb(var(--ink) / .7); }

.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)); }

/* the phone figures below 760 px, where the wide ones would shrink their text under 12 px */
@media (max-width: 760px) {
  .dots.wide, .grid.wide { display: none; }
  .dots.narrow, .grid.narrow { display: block; max-width: 520px; }
}
@media (max-width: 600px) {
  .chips button { padding: 9px 12px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: 96px 1fr; gap: 0 16px; }
  .steps .pic { grid-row: span 3; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { .chips button, .cell { transition: none; } }
