/* Newsprint presentation for the existing data build workflow.
   Chart series and the generated heatmap retain distinct data encodings. */
body.newsprint-theme .data-build {
  --db-line: var(--np-rule);
  --db-ink: var(--np-ink);
  --db-muted: var(--np-muted);
  --db-panel: var(--np-paper);
  --db-accent: var(--np-ink);
  --db-good: var(--np-ink);
  --db-warn: var(--np-ink);
  color: var(--np-ink);
  font-family: var(--np-sans);
  font-size: 13px;
  line-height: 1.75;
}
body.newsprint-theme .data-build *,
body.newsprint-theme .data-build *::before,
body.newsprint-theme .data-build *::after {
  border-radius: 0;
  box-shadow: none;
}
body.newsprint-theme .data-build h2,
body.newsprint-theme .data-build h3 {
  color: var(--np-ink);
  font-family: var(--np-serif);
  font-weight: 700;
}
body.newsprint-theme .data-build h2 { font-size: 24px; line-height: 1.35; }
body.newsprint-theme .data-build h3 { font-size: 18px; line-height: 1.4; }
body.newsprint-theme .data-build .db-number,
body.newsprint-theme .data-build code,
body.newsprint-theme .data-build pre,
body.newsprint-theme .data-build .db-evidence-grid strong,
body.newsprint-theme .data-build .db-neighbor-options button strong,
body.newsprint-theme .data-build .db-row-table td {
  font-family: var(--np-mono);
  font-variant-numeric: tabular-nums;
}
body.newsprint-theme .data-build .db-eyebrow {
  color: var(--np-muted);
  font: 11px/1.6 var(--np-mono);
  letter-spacing: .12em;
}
body.newsprint-theme .data-build .db-hero {
  padding: 24px 0;
  margin-bottom: 0;
  border: 0;
  border-top: 3px solid var(--np-ink);
  border-bottom: 1px solid var(--np-ink);
  background: transparent;
}
body.newsprint-theme .data-build .db-hero h2 {
  margin: 9px 0 12px;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.18;
  letter-spacing: -.025em;
}
body.newsprint-theme .data-build .db-hero p {
  max-width: 850px;
  font-size: 13px;
  color: var(--np-muted);
  line-height: 1.9;
}
body.newsprint-theme .data-build .db-label {
  border: 1px solid var(--np-rule);
  background: var(--np-paper);
  color: var(--np-ink);
  padding: 4px 8px;
  font: 11px/1.6 var(--np-mono);
}
body.newsprint-theme .data-build .db-label.warn {
  border-color: var(--np-ink);
  background: var(--np-rule);
  color: var(--np-ink);
}
body.newsprint-theme .data-build .db-label.good {
  border-color: var(--np-rule);
  background: var(--np-paper);
  color: var(--np-ink);
}
body.newsprint-theme .data-build .db-section {
  margin-bottom: 20px;
  padding: 24px 0;
  border: 0;
  border-bottom: 1px solid var(--np-ink);
  background: transparent;
}
body.newsprint-theme .data-build .db-section-heading { margin-bottom: 18px; }
body.newsprint-theme .data-build .db-section-heading h2 { font-size: 24px; font-weight: 700; }
body.newsprint-theme .data-build .db-section-heading h2 small {
  display: inline-block;
  margin-right: 12px;
  color: var(--np-muted);
  font: 12px var(--np-mono);
}
body.newsprint-theme .data-build .db-section-heading p,
body.newsprint-theme .data-build .db-section-heading > span { font-size: 12px; color: var(--np-muted); }
body.newsprint-theme .data-build .db-kpis,
body.newsprint-theme .data-build .db-result-metrics,
body.newsprint-theme .data-build .db-stages,
body.newsprint-theme .data-build .db-upload-grid,
body.newsprint-theme .data-build .db-quality-list,
body.newsprint-theme .data-build .db-charts {
  gap: 0;
  border-top: 1px solid var(--np-rule);
  border-left: 1px solid var(--np-rule);
}
body.newsprint-theme .data-build .db-kpis { margin: 20px 0 0; }
body.newsprint-theme .data-build .db-kpi,
body.newsprint-theme .data-build .db-stage,
body.newsprint-theme .data-build .db-upload-card,
body.newsprint-theme .data-build .db-quality-item,
body.newsprint-theme .data-build .db-chart-card {
  border: 0;
  border-right: 1px solid var(--np-rule);
  border-bottom: 1px solid var(--np-rule);
  background: var(--np-paper);
}
body.newsprint-theme .data-build .db-kpi { padding: 15px 18px; }
body.newsprint-theme .data-build .db-kpi > span,
body.newsprint-theme .data-build .db-kpi small { font-size: 11px; color: var(--np-muted); }
body.newsprint-theme .data-build .db-kpi strong { font: 28px/1.45 var(--np-mono); color: var(--np-ink); }
body.newsprint-theme .data-build .db-result-metrics .db-kpi strong { font-size: 24px; }
body.newsprint-theme .data-build .db-stage { padding: 18px 14px; }
body.newsprint-theme .data-build .db-stage b { color: var(--np-ink); font: 24px/1.4 var(--np-mono); }
body.newsprint-theme .data-build .db-stages .db-stage b { color: var(--np-ink); }
body.newsprint-theme .data-build .db-stage strong { font: 700 17px/1.4 var(--np-serif); }
body.newsprint-theme .data-build .db-stage p,
body.newsprint-theme .data-build .db-stage small { color: var(--np-muted); font-size: 11px; }
body.newsprint-theme .data-build .db-upload-card { padding: 16px; }
body.newsprint-theme .data-build .db-upload-card h3 { font-size: 18px; }
body.newsprint-theme .data-build .db-upload-card small { color: var(--np-muted); font-size: 11px; }
body.newsprint-theme .data-build .db-upload-card .db-required { color: var(--np-muted); }
body.newsprint-theme .data-build .db-upload-card a { font-size: 11px; }
body.newsprint-theme .data-build .db-grid-two { gap: 0; border-top: 1px solid var(--np-rule); }
body.newsprint-theme .data-build .db-grid-two > .db-section { margin: 0; padding: 20px; border-bottom-color: var(--np-rule); }
body.newsprint-theme .data-build .db-grid-two > .db-section + .db-section { border-left: 1px solid var(--np-rule); }
body.newsprint-theme .data-build .db-notice,
body.newsprint-theme .data-build .db-notice.info,
body.newsprint-theme .data-build .db-notice.good {
  background: #f0f0ec;
  color: var(--np-ink);
  border: 0;
  border-left: 3px solid var(--np-ink);
  padding: 12px 14px;
  font-size: 12px;
}
body.newsprint-theme .data-build .db-notice.db-error {
  border-left-color: var(--np-red);
  background: var(--np-paper);
  color: var(--np-red);
}
body.newsprint-theme .data-build .db-error-text { color: var(--np-red); }
body.newsprint-theme .data-build .db-empty { border: 1px solid var(--np-rule); background: transparent; color: var(--np-muted); }
body.newsprint-theme .data-build button,
body.newsprint-theme .data-build input,
body.newsprint-theme .data-build select {
  border: 1px solid var(--np-rule);
  background: var(--np-paper);
  color: var(--np-ink);
  font: 12px/1.5 var(--np-sans);
  min-height: 36px;
  padding: 8px 11px;
  accent-color: var(--np-ink);
  color-scheme: light;
}
body.newsprint-theme .data-build input::placeholder { color: var(--np-muted); opacity: 1; }
body.newsprint-theme .data-build input[type="checkbox"] { min-height: 18px; width: 18px; height: 18px; padding: 0; }
body.newsprint-theme .data-build button:hover { border-color: var(--np-ink); background: var(--np-rule); }
body.newsprint-theme .data-build button.primary { background: var(--np-ink); border-color: var(--np-ink); color: var(--np-paper); }
body.newsprint-theme .data-build button.primary:hover { background: var(--np-red); border-color: var(--np-red); }
body.newsprint-theme .data-build button:disabled { opacity: .5; cursor: not-allowed; }
body.newsprint-theme .data-build .db-mode button.active,
body.newsprint-theme .data-build .db-field-tabs button.active {
  background: var(--np-ink) !important;
  border-color: var(--np-ink) !important;
  color: var(--np-paper) !important;
}
body.newsprint-theme .data-build a { color: var(--np-ink); text-decoration: underline; text-underline-offset: 3px; }
body.newsprint-theme .data-build a:hover { color: var(--np-red); }
body.newsprint-theme .data-build .db-link-button { color: var(--np-ink) !important; text-decoration: underline; text-underline-offset: 3px; }
body.newsprint-theme .data-build .db-settings label,
body.newsprint-theme .data-build .db-source-label,
body.newsprint-theme .data-build .db-check { color: var(--np-muted); font-size: 12px !important; }
body.newsprint-theme .data-build .db-sheet-label { font-size: 11px !important; }
body.newsprint-theme .data-build .db-sheet-label input { padding: 8px 11px !important; }
body.newsprint-theme .data-build input[type="file"] { font-size: 11px; padding: 5px; }
body.newsprint-theme .data-build input[type="file"]::file-selector-button {
  border: 1px solid var(--np-ink);
  border-radius: 0;
  margin-right: 8px;
  padding: 6px 10px;
  color: var(--np-paper);
  background: var(--np-ink);
  font: 11px var(--np-sans);
}
body.newsprint-theme .data-build .db-progress { border-color: var(--np-rule); background: #f0f0ec; color: var(--np-ink); }
body.newsprint-theme .data-build .db-progress::before { height: 2px; background: var(--np-ink); }
body.newsprint-theme .data-build table { width: 100%; border-collapse: collapse; font-size: 12px; }
body.newsprint-theme .data-build th { background: #f0f0ec; color: var(--np-muted); border-bottom: 1px solid var(--np-ink); padding: 11px; font: 11px/1.6 var(--np-sans); }
body.newsprint-theme .data-build td { color: var(--np-ink); border-bottom: 1px solid var(--np-rule); padding: 11px; font-size: 12px; }
body.newsprint-theme .data-build td small { color: var(--np-muted); font-size: 11px; }
body.newsprint-theme .data-build code { color: var(--np-ink); font-size: 11px; }
body.newsprint-theme .data-build .db-field-status,
body.newsprint-theme .data-build .db-field-status.good,
body.newsprint-theme .data-build .db-field-status.warn { color: var(--np-ink); }
body.newsprint-theme .data-build .db-row-table tr:hover td { background: #f0f0ec; }
body.newsprint-theme .data-build .db-row-table tr.selected td { background: var(--np-rule); }
body.newsprint-theme .data-build .db-list-item { border-color: var(--np-rule); }
body.newsprint-theme .data-build .db-list-item strong { font-size: 12px; }
body.newsprint-theme .data-build .db-list-item p { color: var(--np-muted); font-size: 12px; }
body.newsprint-theme .data-build .db-chart-card { padding: 18px; }
body.newsprint-theme .data-build .db-chart-head h3 { font-size: 19px; }
body.newsprint-theme .data-build .db-chart .db-grid-line { stroke: var(--np-rule); }
body.newsprint-theme .data-build .db-chart .db-axis { fill: var(--np-muted); font: 11px var(--np-mono); }
body.newsprint-theme .data-build .db-chart .db-fit-line { stroke: var(--np-ink); stroke-width: 2; }
body.newsprint-theme .data-build .db-chart .db-observed-call { fill: #986b43; stroke: var(--np-paper); }
body.newsprint-theme .data-build .db-chart .db-observed-put { fill: #426962; stroke: var(--np-paper); }
body.newsprint-theme .data-build .db-term-model { fill: var(--np-ink); stroke: var(--np-paper); }
body.newsprint-theme .data-build .db-chart .db-node:hover,
body.newsprint-theme .data-build .db-chart .db-node:focus,
body.newsprint-theme .data-build .db-chart .db-selected-node { stroke: var(--np-ink); stroke-width: 2.5; }
body.newsprint-theme .data-build .db-chart rect.db-node:hover,
body.newsprint-theme .data-build .db-chart rect.db-node:focus-visible { stroke: var(--np-paper); stroke-width: 2.5; outline: 1px solid var(--np-ink); outline-offset: 1px; }
body.newsprint-theme .data-build .db-legend { color: var(--np-muted); font-size: 11px; flex-wrap: wrap; gap: 8px 16px; }
body.newsprint-theme .data-build .db-legend .db-fit { background: var(--np-ink); }
body.newsprint-theme .data-build .db-legend .db-call { background: #986b43; }
body.newsprint-theme .data-build .db-legend .db-put { background: #426962; }
body.newsprint-theme .data-build .db-chart-caption { color: var(--np-muted); font-size: 11px; }
body.newsprint-theme .data-build .db-point-summary { background: #f0f0ec; color: var(--np-ink); border-color: var(--np-rule); font: 12px/1.8 var(--np-mono); }
body.newsprint-theme .data-build .db-quality-item,
body.newsprint-theme .data-build .db-quality-item.good { padding: 14px; border-left: 0; color: var(--np-ink); font-size: 12px; }
body.newsprint-theme .data-build .db-quality-item > p { color: var(--np-muted); font-size: 11px; }
body.newsprint-theme .data-build .db-evidence { border-color: var(--np-ink); background: var(--np-paper); padding: 18px; }
body.newsprint-theme .data-build .db-evidence-grid { gap: 16px; font-size: 12px; }
body.newsprint-theme .data-build .db-evidence-grid span { color: var(--np-muted); font-size: 11px; }
body.newsprint-theme .data-build .db-evidence-grid strong { color: var(--np-ink); font-size: 12px; }
body.newsprint-theme .data-build pre,
body.newsprint-theme .data-build .db-evidence pre,
body.newsprint-theme .data-build .db-technical pre { border: 1px solid var(--np-rule); background: #f0f0ec; color: var(--np-ink); font-size: 11px; }
body.newsprint-theme .data-build details > summary { color: var(--np-muted); font-size: 12px; }
body.newsprint-theme .data-build .db-downloads a { background: var(--np-paper); border-color: var(--np-ink); color: var(--np-ink); font-size: 12px; padding: 9px 12px; }
body.newsprint-theme .data-build .db-downloads a:hover { background: var(--np-ink); color: var(--np-paper); }
body.newsprint-theme .data-build .db-handoff-pack { background: var(--np-paper); border-color: var(--np-ink); padding: 20px; }
body.newsprint-theme .data-build .db-handoff-version { border-color: var(--np-rule); }
body.newsprint-theme .data-build .db-footer-flow { background: var(--np-paper); border: 0; border-top: 3px solid var(--np-ink); border-bottom: 1px solid var(--np-ink); padding: 22px 0; }
body.newsprint-theme .data-build .db-footer-flow h3 { font-size: 23px; }
body.newsprint-theme .data-build .db-footer-flow p { font-size: 12px; color: var(--np-muted); }
body.newsprint-theme .data-build .db-neighbor-picker { background: #f0f0ec; border-color: var(--np-ink); }
body.newsprint-theme .data-build .db-neighbor-picker p,
body.newsprint-theme .data-build .db-neighbor-picker small { color: var(--np-muted); font-size: 11px; }
body.newsprint-theme .data-build .db-neighbor-picker p strong { color: var(--np-ink); }
body.newsprint-theme .data-build .db-neighbor-options button { background: var(--np-paper); border-color: var(--np-rule); color: var(--np-ink); }
body.newsprint-theme .data-build .db-neighbor-options button span { color: var(--np-muted); font-size: 11px; }
body.newsprint-theme .data-build .db-neighbor-options button:hover { background: var(--np-rule); border-color: var(--np-ink); }
body.newsprint-theme .data-build button:focus-visible,
body.newsprint-theme .data-build a:focus-visible,
body.newsprint-theme .data-build input:focus-visible,
body.newsprint-theme .data-build select:focus-visible,
body.newsprint-theme .data-build summary:focus-visible { outline: 2px solid var(--np-ink); outline-offset: 3px; }
@media (max-width: 1250px) {
  body.newsprint-theme .data-build .db-grid-two > .db-section { padding: 20px 0; }
  body.newsprint-theme .data-build .db-grid-two > .db-section + .db-section { border-left: 0; }
}
@media (max-width: 760px) {
  body.newsprint-theme .data-build .db-hero { padding: 20px 0; }
  body.newsprint-theme .data-build .db-hero h2 { font-size: 31px; }
  body.newsprint-theme .data-build .db-section { padding: 20px 0; }
  body.newsprint-theme .data-build .db-section-heading { flex-wrap: wrap; gap: 12px; }
  body.newsprint-theme .data-build .db-section-heading h2 { font-size: 22px; }
  body.newsprint-theme .data-build .db-section-heading > span { display: block; flex-basis: 100%; }
  body.newsprint-theme .data-build .db-kpi { padding: 12px; }
  body.newsprint-theme .data-build .db-kpi strong { font-size: 24px; }
  body.newsprint-theme .data-build .db-stage { padding: 14px 12px; }
  body.newsprint-theme .data-build .db-chart-card { padding: 12px; }
  body.newsprint-theme .data-build .db-chart-head { align-items: flex-start; flex-wrap: wrap; }
  body.newsprint-theme .data-build .db-chart-head select { max-width: 100%; }
  body.newsprint-theme .data-build .db-chart-head h3 { font-size: 18px; }
  body.newsprint-theme .data-build .db-chart svg { min-height: 0; }
  body.newsprint-theme .data-build button,
  body.newsprint-theme .data-build input:not([type="checkbox"]),
  body.newsprint-theme .data-build select,
  body.newsprint-theme .data-build summary { min-height: 44px; min-width: 44px; }
  body.newsprint-theme .data-build input[type="file"]::file-selector-button { min-height: 44px; }
  body.newsprint-theme .data-build .db-check { min-height: 44px; align-items: center; }
  body.newsprint-theme .data-build a { display: inline-flex; align-items: center; min-height: 44px; }
  body.newsprint-theme .data-build .db-link-button { padding: 8px 0 !important; }
  body.newsprint-theme .data-build .db-actions > button,
  body.newsprint-theme .data-build .db-mode > button { flex: 1 1 160px; }
  body.newsprint-theme .data-build .db-inline input[type="search"] { max-width: 100%; width: 100%; }
  body.newsprint-theme .data-build .db-result-date { gap: 8px; }
  body.newsprint-theme .data-build .db-result-date input[type="range"] { flex: 1; min-width: 120px; }
  body.newsprint-theme .data-build .db-evidence-heading { flex-wrap: wrap; }
  body.newsprint-theme .data-build .db-handoff-pack { padding: 14px; }
  body.newsprint-theme .data-build .db-handoff-pack .db-section-heading > button { width: 100%; }
  body.newsprint-theme .data-build .db-footer-flow h3 { font-size: 22px; }
}
@media (max-width: 440px) {
  body.newsprint-theme .data-build .db-settings { grid-template-columns: 1fr; }
  body.newsprint-theme .data-build .db-settings .db-wide { grid-column: auto; }
  body.newsprint-theme .data-build .db-evidence-grid { grid-template-columns: 1fr; }
  body.newsprint-theme .data-build .db-section-heading > button { width: 100%; }
  body.newsprint-theme .data-build .db-downloads a { width: 100%; justify-content: center; }
}
