/* ============================================================
   site.css — Free Image Index extensions on top of Template 02
   (swiss-index). Keeps template style.css verbatim; adds the
   site-specific blocks: status line, weight chips, disambiguation
   callout, formula codeblock, FAQ, MDX-rendered content.
   Palette mirrors the template: white / #111 / #ff4d00.
   ============================================================ */

/* ---------- status line (mono meta above the hero title) ---------- */
.status-line {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
  margin-bottom: 18px;
}
.status-line b { color: var(--accent); font-weight: 500; }

/* ---------- weight chips inside .hero-meta ---------- */
.hero-meta .chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 3px 10px;
}
.hero-meta .chip b { color: var(--accent); font-weight: 500; }

/* ---------- disambiguation callout on the homepage ---------- */
.disambig { padding-top: 40px; padding-bottom: 0; }
.callout {
  border: 2px solid var(--line);
  padding: 20px 22px;
  margin: 0;
}
.callout .c-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 600;
}
.callout p { margin-bottom: 0; }

/* ---------- formula codeblock ---------- */
.codeblock {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: #f5f5f5;
  border: 1px solid var(--line);
  padding: 16px 20px;
  margin: 20px 0 28px;
  overflow-x: auto;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}
.codeblock .k { color: var(--accent); font-weight: 500; }
.codeblock .cm { color: var(--faint); }

/* ---------- FAQ blocks (homepage, posts, thin pages) ---------- */
.faq-block { margin-top: 36px; }
.faq-item { margin-bottom: 18px; }
.faq-item h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
  text-transform: none;
  border-bottom: 0;
  padding-bottom: 0;
}
.faq-item p { color: #222; margin-bottom: 0; }

/* ---------- index rows: tool names link out ---------- */
.idx-body h3 a { color: var(--ink); text-decoration: none; }
.idx-body h3 a:hover { color: var(--accent); }

/* pending index score: keep the score column honest */
.col-score .num.is-pending {
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 400;
}

/* ---------- MDX-rendered content ---------- */
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 24px 0;
  font-variant-numeric: tabular-nums;
}
.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 9px 14px;
  text-align: left;
}
.prose th {
  font-family: var(--font-mono);
  background: #f5f5f5;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.prose td:first-child { font-family: var(--font-mono); font-size: 0.8rem; }
.prose table strong { color: var(--ink); }

.prose h3 { font-size: 1.15rem; margin: 28px 0 10px; text-transform: none; border-bottom: 0; padding-bottom: 0; }
.prose ul,
.prose ol { margin: 0 0 16px 22px; color: #222; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
  border: 2px solid var(--line);
  background: var(--accent-soft);
  padding: 18px 22px;
  margin: 26px 0;
}
.prose blockquote p { margin-bottom: 8px; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote strong { color: var(--accent); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: #f5f5f5;
  border: 1px solid var(--line-soft);
  padding: 1px 6px;
}
.prose pre {
  background: #f5f5f5;
  border: 1px solid var(--line);
  padding: 16px 20px;
  margin: 20px 0;
  overflow-x: auto;
  font-size: 0.85rem;
}
.prose pre code { background: none; border: 0; padding: 0; }
.prose img { max-width: 100%; border: 1px solid var(--line); }

/* ---------- blog listing rows: mono meta chips ---------- */
.idx-tags .meta-chip { border-color: var(--line-soft); color: var(--muted); }
