/* ==========================================================================
   cost.css — Cost Intelligence silo (/cost/)
   Ships as a NEW FILE, not a ?v bump: CF Pages serves an already-cached
   stylesheet regardless of the query string, so site.css stays byte-frozen.
   Loaded only by pages whose spec declares "css": ["cost"].
   Uses the site's existing custom properties; defines no new colours.
   ========================================================================== */

.ctable-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.ctable {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.ctable caption {
  caption-side: top;
  text-align: left;
  padding: 16px 18px 12px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .01em;
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
}

.ctable thead th {
  text-align: left;
  padding: 12px 18px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.ctable tbody th,
.ctable tbody td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
  color: var(--ink-2);
}

.ctable tbody th {
  text-align: left;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.ctable tbody tr:last-child th,
.ctable tbody tr:last-child td {
  border-bottom: 0;
}

.ctable tbody tr:nth-child(even) th,
.ctable tbody tr:nth-child(even) td {
  background: var(--cream-2);
}

.ctable-note {
  margin: 10px 0 26px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-dim);
}

/* the price column reads as the answer, so it carries the brand weight */
.ctable tbody td:last-child {
  font-weight: 600;
  color: var(--rust-deep);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .ctable { font-size: 14px; }
  .ctable thead th { padding: 10px 14px; }
  .ctable tbody th,
  .ctable tbody td { padding: 11px 14px; }
  .ctable caption { padding: 14px 14px 10px; }
}
