/* ── blog.css — Shared styles for all FinCalcHQ blog pages ── */

/* ── Chart card (outer wrapper containing title + subtitle + canvas) ── */
/* Override shared.css .chart-wrap which sets height:240px for calculator canvases.
   Blog pages use .chart-wrap as an outer card — height must be auto. */
.chart-wrap {
  height: auto !important;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 20px 16px;
  margin: 28px 0;
  overflow: hidden;
}
.chart-wrap .ct {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 3px;
}
.chart-wrap .cs {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin: 0 0 12px;
}

/* ── Canvas sizing box — overflow:hidden stops canvas escaping ── */
.chart-canvas-box {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
}

/* ── Table scroll wrapper — enables horizontal scroll on mobile ── */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  margin: 20px 0;
}

/* ── Data table — standardised across all blog pages ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 480px; /* prevents columns from getting too squished on mobile */
}
.data-table thead th {
  background: #1e3a8a;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}
.data-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  font-size: 13px;
  vertical-align: top;
  line-height: 1.55;
}
.data-table tbody tr:nth-child(even) td { background: #f8fafc; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td {
  background: #eff6ff;
  transition: background 0.15s;
}

/* ── Mobile overrides ── */
@media (max-width: 640px) {
  .chart-canvas-box { height: 200px; }
  .data-table thead th,
  .data-table tbody td { padding: 8px 10px; font-size: 12px; }
}
