
/*
 * paper.css, shared polish layer for HyperTensor research papers.
 * Imported AFTER each paper's local <style> so it overrides on conflict.
 * Defines: hero stats, hero buttons, abstract box, gate cards, two-column
 * cards, polished table chrome, accent section numbers.
 */

/* -- Hero polish ----------------------------------------- */
#hero {
  padding: 6rem 1.5rem 4rem;
}
.hero-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--red-bg);
  border: 1px solid #fac5c5;
  border-radius: 2rem;
  padding: 0.32em 0.95em;
  margin-bottom: 1.6rem;
}
.hero-title {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-soft);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}
.hero-meta {
  font-size: 0.86rem;
  color: var(--text-soft);
  margin-bottom: 2.2rem;
}
.hero-meta a { color: var(--blue); text-decoration: none; }
.hero-meta a:hover { text-decoration: underline; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.4rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}
.stat { text-align: center; min-width: 6rem; }
.stat-num {
  display: block;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
}
.stat-num.good { color: var(--green); }
.stat-num.warn { color: var(--accent); }
.stat-num.info { color: #8a5b16; }
.stat-label {
  display: block;
  font-size: 0.76rem;
  color: var(--text-soft);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 0.3rem;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6em 1.3em;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #a93226; }
.btn-secondary {
  background: var(--bg-soft);
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover { background: var(--border); }

/* -- Section number -> accent uppercase ------------------- */
.section-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  display: block;
}

/* -- Abstract box ---------------------------------------- */
.abstract-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.8rem 2rem;
  margin: 1rem 0 1.6rem;
}
.abstract-box p { font-size: 0.97rem; line-height: 1.78; }
.abstract-box p:last-child { margin-bottom: 0; }

/* -- Tables: bordered chrome ----------------------------- */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  overflow-x: auto;
}
.table-wrap.wide { border-radius: 8px; }
table thead th {
  background: var(--bg-soft);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
  white-space: nowrap;
  padding: 0.7rem 0.95rem;
}
table td { padding: 0.65rem 0.95rem; }
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: var(--bg-soft); }
.pass { color: var(--green); font-weight: 600; }
.fail { color: var(--accent); font-weight: 600; }
.warn { color: var(--accent); font-weight: 600; }
td.good { color: var(--green); font-weight: 600; }

/* -- Callout polish -------------------------------------- */
.callout {
  border-radius: 0 8px 8px 0;
  padding: 1.05rem 1.3rem;
}
.callout.intuition {
  background: var(--yellow-bg);
  border-left-color: #f0c040;
}
.callout.intuition .callout-title { color: #9a6e00; }
.callout-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* -- Gate cards ------------------------------------------ */
.gates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem;
  margin: 1.4rem 0;
}
.gate-card {
  border: 1px solid #c8f0d8;
  background: var(--green-bg);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.gate-icon {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fff;
  color: var(--green);
  flex-shrink: 0;
}
.gate-text { font-size: 0.84rem; line-height: 1.45; }
.gate-label { font-weight: 600; display: block; }
.gate-value { color: var(--text-soft); }

/* -- Two-column grid of cards ---------------------------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  margin: 1.4rem 0;
}
.grid-2 .card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
  background: var(--bg-soft);
}
.card-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.card-body { font-size: 0.88rem; color: var(--text-soft); }
@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
}
