/* ==========================================================================
   Calc Hives — Developer & AI cost calculators (dev.css)
   Extra graph styles layered on top of styles.css. These power the AI, API
   and cloud cost tools: provider-coded comparison bars, token split graphs,
   cost highlight cards and pricing tables. Mobile-first, theme-consistent.
   Provider palette (validated on the light surface):
     OpenAI #10a37f · Claude #d97757 · Gemini #4285f4 · DeepSeek #4d6bfe
     Mistral #fa520f · Llama #7b61ff · Grok #12161c · neutral #8A90A0
   ========================================================================== */

/* --- Cost highlight cards: the headline numbers a reader scans first ----- */
.cost-cards {
  display: grid; grid-template-columns: 1fr; gap: 12px; margin: 4px 0 2px;
}
@media (min-width: 480px) { .cost-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .cost-cards.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.cost-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px;
}
.cost-card .cc-label {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-faint); margin: 0 0 6px;
}
.cost-card .cc-value {
  font-family: var(--font-mono); font-weight: 600; color: var(--ink);
  font-size: 1.5rem; line-height: 1.1; word-break: break-word;
}
.cost-card .cc-sub { font-size: 0.8rem; color: var(--ink-soft); margin: 4px 0 0; }
.cost-card.is-accent { border-color: var(--indigo); box-shadow: inset 0 0 0 1px var(--indigo); }

/* --- Ranked comparison chart: provider-coded bars with a value column ---- */
.rank-chart { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 2px; }
.rank-row { display: grid; grid-template-columns: 1fr; gap: 5px; }
.rank-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.rank-name {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9rem; color: var(--ink); font-weight: 500; min-width: 0;
}
.rank-name .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.rank-value {
  font-family: var(--font-mono); font-weight: 600; color: var(--ink);
  font-size: 0.9rem; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.rank-track { height: 14px; background: var(--panel); border-radius: 7px; overflow: hidden; }
.rank-fill { height: 100%; border-radius: 7px; min-width: 3px; transition: width .3s ease; }
.rank-row.is-cheapest .rank-value { color: #1baf7a; }
.rank-row.is-priciest .rank-value { color: #e34948; }

/* --- Token split: input vs output tokens as a two-part meter ------------- */
.token-split { margin: 6px 0 2px; }
.token-meter {
  display: flex; width: 100%; height: 30px; border-radius: 8px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
}
.token-seg {
  height: 100%; min-width: 4px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.72rem; color: #fff; overflow: hidden;
  transition: flex-basis .3s ease; white-space: nowrap;
}
.token-seg + .token-seg { border-left: 2px solid #fff; }

/* --- Provider chip legend ----------------------------------------------- */
.chip-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.chip-legend li {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; color: var(--ink-soft);
  background: var(--panel); border-radius: 999px; padding: 4px 10px;
}
.chip-legend .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

/* --- Pricing table: reuses example-table, adds a highlighted first column - */
.example-table td.model { color: var(--ink); font-weight: 600; }
.example-table tr.is-highlight td { background: rgba(53,82,240,0.06); }

/* --- Note / disclaimer callout for 2026 pricing estimates --------------- */
.note-box {
  background: var(--panel); border-left: 3px solid var(--indigo);
  border-radius: 6px; padding: 12px 14px; margin: 16px 0;
  font-size: 0.88rem; color: var(--ink-soft);
}
.note-box strong { color: var(--ink); }

/* --- Directory category blocks on the /dev landing pages ---------------- */
.cat-lead { color: var(--ink-soft); max-width: 74ch; margin: 2px 0 16px; }
