/* Page-specific styles, layered on top of ../../theme.css, ../dlmm.css, and
   ../lightpaper/lightpaper.css (reused here for .lp-table/.lp-hero/.toc/.prose/.db-axis/etc. —
   those are generic components despite the "lp-" prefix, not lightpaper-only). */

/* ── the three models ───────────────────────────────────────────────── */

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 24px;
}

.model-card {
  padding: 20px;
  border: 1px solid #1e1e1e;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent);
}

/* The design this site is built on — marked, but not shouted about. */
.model-card-ours {
  border-color: #2b3a52;
}

.model-art {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 16px;
}

/* CPMM's curve: the shape of the formula, drawn faintly behind its flat spread. */
.cmp-curve {
  fill: none;
  stroke: #333;
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
}

/* CLMM's band: continuous, filled, with hard edges at the range bounds. */
.cmp-band {
  fill: #2f2f2f;
}

.cmp-edge {
  stroke: #4a4a4a;
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.cmp-axis-label {
  fill: #555;
  font-size: 9px;
  font-family: "Ubuntu", sans-serif;
}

.model-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #666;
  margin-bottom: 6px;
}

.model-card-ours .model-name {
  color: #6f9bd8;
}

.model-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.model-card p {
  margin: 0;
  color: #999;
  font-size: 14.5px;
  line-height: 1.55;
}

.model-card p code {
  color: #e0e0e0;
  font-size: 13px;
}

/* ── reasons ────────────────────────────────────────────────────────── */

.reason {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid #1a1a1a;
}

.reason:last-of-type {
  border-bottom: 1px solid #1a1a1a;
}

.reason-n {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #1B9E3E;
  color: #1B9E3E;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reason h3 {
  margin: 4px 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.reason p {
  margin: 0;
}

/* ── limits ─────────────────────────────────────────────────────────── */

.limits {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  row-gap: 16px;
}

.limits li {
  position: relative;
  padding-left: 20px;
  color: #999;
  line-height: 1.62;
}

.limits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 1px;
  background: #555;
}

.limits strong {
  color: #fff;
  font-weight: 500;
}

/* ── responsive ─────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .model-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .lp-table {
    display: block;
    overflow-x: auto;
  }
}
