/* The Compute Market Tracker. Site tokens only (tokens.css), so both themes
   follow. One accent: the signal colour marks dates still to come. */
.cm-page { padding: 120px 0 96px; }
.cm-narrow { max-width: 960px; }
.cm-head { border-bottom: 1px solid var(--rule); padding-bottom: 32px; }
.cm-title { font-size: clamp(42px, 5vw, 72px); line-height: 1.04; margin: 16px 0 0; }
.cm-lead { max-width: 64ch; font-size: 19px; line-height: 30px; margin: 24px 0 0; }
.cm-lead a, .cm-sub a, .cm-page p a, .cm-sources a, .cm-src { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cm-head .meta a { color: inherit; }
.cm-stamp { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 28px 0 0; }
.cm-stamp div { display: flex; flex-direction: column; gap: 4px; }
.cm-stamp dt { color: var(--ink-muted); }
.cm-stamp dd { margin: 0; }
.cm-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 24px 0 0; }
.cm-cta .cm-note { margin: 0; }
.cm-btn { display: inline-block; padding: 10px 16px; border: 1px solid var(--ink); border-radius: var(--radius-small); color: var(--ink); text-decoration: none; font: 500 13px var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.cm-btn:hover { background: var(--ink); color: var(--bg); }
.cm-draft { border: 1px solid var(--signal); padding: 12px 16px; margin: 0 0 24px; border-radius: var(--radius-small); }

.cm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.8fr); gap: 0; border-bottom: 1px solid var(--rule); }
.cm-kpi { padding: 28px 24px 28px 0; border-right: 1px solid var(--hairline); }
.cm-kpi + .cm-kpi { padding-left: 24px; }
.cm-kpi:last-child { border-right: 0; }
.cm-kpi p { margin: 0; }
.cm-kpiv { font-size: 48px; line-height: 56px; margin-top: 8px !important; }
.cm-kpisub { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin-top: 4px !important; max-width: 32ch; }

.cm-section { padding-top: 64px; }
.cm-h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.15; margin: 0; }
.cm-h3 { font-family: var(--font-sans); font-weight: 600; font-size: 17px; line-height: 24px; margin: 0; }
.cm-sub { color: var(--ink-muted); max-width: 72ch; margin: 12px 0 0; font-size: 16px; line-height: 24px; }

.cm-scroll { overflow-x: auto; margin-top: 24px; }
.cm-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; min-width: 760px; }
.cm-table th, .cm-table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--hairline); }
.cm-table thead th { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 400; color: var(--ink-muted); border-bottom: 1px solid var(--rule); }
.cm-table tbody th { font-weight: 400; }
.cm-name { display: block; font-weight: 600; }
.cm-note { display: block; color: var(--ink-muted); font-size: 13px; line-height: 18px; margin-top: 2px; }
.cm-code { white-space: nowrap; font-size: 13px; }
.cm-table td:nth-child(4), .cm-table td:nth-child(5) { min-width: 120px; }
.cm-na { color: var(--ink-muted); font-style: italic; }
.cm-status { display: inline-block; padding: 2px 8px; border: 1px solid var(--ink); border-radius: var(--radius-small); font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; }
.cm-status-listed { background: var(--ink); color: var(--bg); }
.cm-status-announced { border-style: dashed; }

.cm-timeline { margin: 32px 0 0; }
.cm-timeline svg { width: 100%; height: auto; display: block; }
.cm-axis { stroke: var(--rule); stroke-width: 1; }
.cm-tick line { stroke: var(--hairline); stroke-width: 1; }
.cm-tick text, .cm-now text { fill: var(--ink-muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; }
.cm-now line { stroke: var(--ink-muted); stroke-dasharray: 3 3; }
.cm-dot circle { fill: var(--bg); stroke: var(--ink); stroke-width: 2; }
.cm-due circle { fill: var(--signal); stroke: var(--signal); }
.cm-timeline figcaption { margin-top: 8px; }

.cm-events { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--rule); }
.cm-event { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.cm-event p { margin: 0; }
.cm-eventk { color: var(--ink-muted); }
.cm-eventt { font-size: 17px; line-height: 26px; margin-top: 4px !important; }
.cm-event-due { box-shadow: inset 3px 0 0 var(--signal); padding-left: 16px; }
.cm-event-due .cm-eventd { font-weight: 600; }

.cm-downloads { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 16px 32px; }
.cm-sources { list-style: none; padding: 0; margin: 24px 0 0; }
.cm-sources li { padding: 12px 0; border-bottom: 1px solid var(--hairline); }

.cm-steps { list-style: none; padding: 0; margin: 40px 0 0; }
.cm-step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--hairline); }
.cm-step p { margin: 8px 0 0; max-width: 64ch; }
.cm-stepn { color: var(--ink-muted); margin: 0 !important; }
.cm-list { margin: 16px 0 0; padding-left: 20px; }
.cm-list li { margin-top: 8px; }

/* List prices: one card per GPU, a step chart and a row per provider line.
   Tone tells providers apart (AWS ink, Azure muted and dashed); a second
   instance of one provider is dotted. A change is the one signal mark. */
.cm-pgrid-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin-top: 32px; border-top: 1px solid var(--rule); }
.cm-pcard { padding: 28px 0 24px; border-bottom: 1px solid var(--hairline); min-width: 0; }
.cm-pcard-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.cm-pcard-h p { margin: 0; }
.cm-pchart { width: 100%; height: auto; display: block; margin-top: 12px; overflow: visible; }
.cm-pgrid line { stroke: var(--hairline); stroke-width: 1; }
.cm-pgrid text, .cm-pyear text { fill: var(--ink-muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; }
.cm-pyear line { stroke: var(--rule); stroke-width: 1; }
.cm-pl { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.cm-pl-aws { stroke: var(--ink); }
.cm-pl-azure { stroke: var(--ink-muted); stroke-dasharray: 7 5; }
.cm-pl-alt { stroke-dasharray: 1 5; stroke-width: 2.5; }
.cm-pchange { fill: var(--signal); stroke: var(--bg); stroke-width: 2; }
.cm-prows { list-style: none; padding: 0; margin: 16px 0 0; }
.cm-prow { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "key who val" ". chg chg"; gap: 2px 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--hairline); }
.cm-pkey { grid-area: key; width: 28px; height: 10px; align-self: center; overflow: visible; }
.cm-pwho { grid-area: who; min-width: 0; }
.cm-pname { font-weight: 600; margin-right: 8px; }
.cm-pwho .cm-note { display: inline; overflow-wrap: anywhere; }
.cm-pval { grid-area: val; font-size: 22px; line-height: 28px; }
.cm-pchg { grid-area: chg; margin: 0; }
.cm-pfoot { margin-top: 16px; max-width: 72ch; }
@media (max-width: 900px) { .cm-pgrid-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .cm-pwho .cm-note { display: block; } .cm-pval { font-size: 19px; } }

.cm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1100px) { .cm-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cm-kpi:nth-child(3) { border-right: 0; } .cm-kpi:nth-child(4) { padding-left: 0; } }
@media (max-width: 720px) {
  .cm-page { padding: 96px 0 64px; }
  .cm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-kpi, .cm-kpi + .cm-kpi { padding: 20px 12px 20px 0; border-right: 0; }
  .cm-kpiv { font-size: 36px; line-height: 44px; }
  .cm-event { grid-template-columns: 1fr; gap: 4px; }
}
