/* Weekly archives: keep the date and all seven weekdays in the page width.
   Records retain their native table order and unrestricted vertical history. */
.chart-record-section .chart-table {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  table-layout: fixed;
}

.chart-record-section .chart-table th,
.chart-record-section .chart-table td {
  min-width: 0;
  padding-inline: 2px;
}

.chart-record-section .chart-table th:first-child,
.chart-record-section .chart-table td:first-child {
  width: 106px;
}

.chart-record-section .chart-table .panel-result {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}

.chart-record-section .chart-table .panel-result__pana,
.chart-record-section .chart-table .panel-result__jodi {
  white-space: nowrap;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.chart-record-section .chart-table .pending-cell {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  line-height: 1.3;
}

.chart-record-section .chart-table .week-range time {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

/* Source cells remain text, including stars, blank strings, partial values and
   original line breaks. No scripts/markup from the reference are rendered. */
.chart-record-section .source-chart-wrap + .source-chart-wrap { margin-top: 18px; }
.chart-record-section .source-chart .source-cell-text {
  white-space: pre-line;
  overflow-wrap: anywhere;
  word-break: normal;
  font-variant-numeric: lining-nums tabular-nums;
}
.chart-record-section .source-chart .source-week .source-cell-text {
  color: inherit;
  font: inherit;
}
.chart-record-section .source-chart .source-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  width: 100%;
  gap: 0;
  font: 700 12px/1.2 Arial, sans-serif;
}
.chart-record-section .source-chart .source-panel__pair,
.chart-record-section .source-chart .source-jodi {
  color: #22151a;
  font: 800 18px/1.25 Arial, sans-serif;
}
.chart-record-section .source-chart .source-text-red { color: #c30f32; }
.chart-record-section .source-chart td { height: 58px; }
.chart-declared-heading { margin-block: 20px 10px; }

@media (max-width: 720px) {
  .chart-record-section .chart-table th:first-child,
  .chart-record-section .chart-table td:first-child {
    width: 68px;
  }

  .chart-record-section .chart-table th,
  .chart-record-section .chart-table td {
    padding: 5px 1px;
    font-size: 11px;
  }

  .chart-record-section .chart-table .week-range {
    font-size: 10px;
    line-height: 1.3;
  }

  .chart-record-section .chart-table .week-range span {
    font-size: 9px;
    line-height: 1.3;
  }

  .chart-record-section .chart-table .panel-result__pana {
    font-size: 11px;
    line-height: 1.2;
  }

  .chart-record-section .chart-table .panel-result__jodi {
    font-size: 15px;
    line-height: 1.25;
  }

  .chart-record-section .chart-table .pending-cell {
    font-size: 11px;
  }

  .chart-record-section .source-chart .source-panel { font-size: 9px; }
  .chart-record-section .source-chart .source-panel__pair { font-size: 12px; }
  .chart-record-section .source-chart .source-jodi { font-size: 15px; }
}

@media (max-width: 340px) {
  .chart-record-section .source-chart .source-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  }
  .chart-record-section .source-chart .source-panel__pair { font-size: 10px; }
}
