/* MathData's own styles. Loads after mathpages/mathpages.css (shared colours, header, tabs,
   footer, controls). Only MathData's page components live here, using those tokens. */
:root {
  --mp-product: #c4638f;          /* pink: middle stripe of the MathData mark */
  --dt-planned: #8a4a68;
  --dt-planned-bg: #f8edf2;
}
html[data-theme="dark"] {
  --mp-product: #e49abb;
  --dt-planned: #f1bfd5;
  --dt-planned-bg: #3a2731;
}

.dt-main { padding-block: 28px 56px; }
.dt-heading { max-width: 62rem; margin-bottom: 24px; }
.dt-heading h1 { margin: 0 0 8px; }
.dt-eyebrow { margin: 0 0 6px; color: var(--mp-muted); font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.dt-lede { margin: 0; font-size: 1.0625rem; line-height: 1.6; }
.dt-crumbs { margin: 0 0 10px; font-size: .875rem; }

.dt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 18px; margin: 0 0 32px; padding: 0; list-style: none; }
.dt-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border: 1px solid var(--mp-border); border-top: 3px solid var(--mp-product);
  border-radius: var(--mp-radius-lg); background: var(--mp-surface); }
.dt-card h2, .dt-card h3 { margin: 0; font-size: 1.2rem; }
.dt-card h2 a, .dt-card h3 a { color: var(--mp-ink); text-decoration: none; }
.dt-card h2 a:hover, .dt-card h3 a:hover { color: var(--mp-link); text-decoration: underline; }
.dt-card p { margin: 0; color: var(--mp-muted); font-size: .9375rem; line-height: 1.55; }
.dt-card ul { margin: 0; padding-left: 1.1rem; font-size: .9375rem; }

.dt-status { display: inline-flex; align-self: flex-start; align-items: center; padding: 2px 10px; border-radius: var(--mp-radius-pill);
  background: var(--dt-planned-bg); color: var(--dt-planned); font-size: .75rem; font-weight: 700; letter-spacing: .02em; }

.dt-prose { max-width: 62rem; }
.dt-prose h2 { margin: 32px 0 10px; }
.dt-prose h3 { margin: 24px 0 8px; }
.dt-prose p, .dt-prose li { line-height: 1.65; }
.dt-note { max-width: 62rem; margin: 0 0 24px; padding: 12px 16px; border-left: 3px solid var(--mp-product); border-radius: var(--mp-radius-sm);
  background: var(--mp-surface-soft); font-size: .9375rem; }

.dt-table-wrap { max-width: 100%; margin: 0 0 20px; overflow-x: auto; border: 1px solid var(--mp-border); border-radius: var(--mp-radius); background: var(--mp-surface); }
.dt-table { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.dt-table caption { padding: 10px 14px; text-align: left; font-weight: 600; color: var(--mp-ink); }
.dt-table th, .dt-table td { padding: 8px 14px; border-top: 1px solid var(--mp-border); text-align: left; vertical-align: top; }
.dt-table thead th { background: var(--mp-surface-muted); font-size: .8125rem; font-weight: 700; }
.dt-table code, .dt-schema code { font-size: .875rem; }
.dt-schema td:first-child { white-space: nowrap; }

@media (max-width: 760px) {
  .dt-main { padding-block: 20px 40px; }
  .dt-table th, .dt-table td { padding: 7px 10px; }
}

/* Datasets with data */
.dt-status-data { background: var(--mp-product); color: var(--mp-surface); }
.dt-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; max-width: 62rem; margin: 0 0 20px; }
.dt-search label { font-weight: 600; }
.dt-search input { width: 9rem; padding: 7px 10px; border: 1px solid var(--mp-border-strong, var(--mp-border)); border-radius: var(--mp-radius-sm);
  background: var(--mp-surface); color: var(--mp-ink); font: inherit; font-variant-numeric: tabular-nums; }
.dt-type-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.dt-type-list a { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 1px solid var(--mp-border); border-radius: var(--mp-radius);
  background: var(--mp-surface); color: var(--mp-ink); text-decoration: none; }
.dt-type-list a:hover { border-color: var(--mp-product); }
.dt-type-name { font-size: 1.125rem; }
.dt-type-meta { color: var(--mp-muted); font-size: .8125rem; }
.dt-coords { display: inline-block; min-width: 7ch; margin-right: .5em; color: var(--mp-muted); font-family: var(--mp-font-mono, ui-monospace, monospace); font-size: .8125rem; }
.dt-num { text-align: right !important; font-variant-numeric: tabular-nums; }
.dt-data td { padding-block: 5px; }
.dt-pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; max-width: 62rem; margin: 0 0 14px; font-size: .9375rem; }
.dt-smaller { font-weight: 700; color: var(--mp-product); }
.dt-na { color: var(--mp-muted); }
.dt-table tfoot th, .dt-table tfoot td { border-top: 2px solid var(--mp-border); font-weight: 600; }
.dt-jordan td, .dt-jordan th[scope="row"] { white-space: nowrap; }
.dt-jordan th[scope="row"] { font-weight: 400; }
.dt-onl { text-decoration: underline; text-decoration-color: var(--mp-product); text-underline-offset: 3px; }
.dt-same { color: var(--mp-muted); }
.dt-variant { color: var(--mp-muted); font-size: .8125rem; }
