/* ============================================================
   open-data.css — Open Data hub & dataset landing pages
   Builds on site.css (theme tokens, fonts, .page, .section,
   .page-head, .site-footer). Add-on components only.
   ============================================================ */

/* ── Dataset hub: list of datasets ────────────────────────── */
.dataset-list { list-style: none; margin: 0; padding: 0; }

.dataset-card {
  display: block;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.25rem;
  background: var(--surface);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color .15s ease, transform .15s ease;
}
.dataset-card:hover {
  border-color: var(--accent);
  border-left-color: var(--accent-hi);
  transform: translateY(-1px);
}
.dataset-card .ds-title {
  display: block;
  font-family: var(--serif-lat);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .35rem;
}
.dataset-card:hover .ds-title { color: var(--accent); }
.dataset-card .ds-desc { display: block; color: var(--ink-soft); line-height: 1.6; }
.dataset-card .ds-meta {
  display: block;
  margin-top: .7rem;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
}

/* ── Badges (N, items, license) ───────────────────────────── */
.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.badge {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .02em;
  padding: .3rem .6rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

/* ── Download button ──────────────────────────────────────── */
.download {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--sans-lat);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--bg);
  background: var(--accent);
  padding: .85rem 1.4rem;
  border-radius: 8px;
  border-bottom: none;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.download:hover { background: var(--accent-hi); color: var(--bg); transform: translateY(-1px); border-bottom: none; }
.download .dl-size { font-family: var(--mono); font-weight: 400; font-size: .82rem; opacity: .85; }
.download::before { content: "↓"; font-size: 1.2rem; line-height: 1; }

/* ── File table ───────────────────────────────────────────── */
.file-table { width: 100%; border-collapse: collapse; margin-top: .5rem; font-size: .95rem; }
.file-table th, .file-table td {
  text-align: left;
  padding: .65rem .75rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.file-table th {
  font-family: var(--sans-lat);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 600;
}
.file-table td a { font-family: var(--mono); font-size: .9rem; }
.file-table .fsize { font-family: var(--mono); color: var(--muted); white-space: nowrap; }
.file-table td:last-child { color: var(--ink-soft); }

/* ── Code / preformatted blocks ───────────────────────────── */
pre.code {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: .85rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
code.inline {
  font-family: var(--mono);
  font-size: .88em;
  padding: .1em .35em;
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--ink);
}

/* ── Definition-style schema list ─────────────────────────── */
.section p.lead { color: var(--ink-soft); line-height: 1.7; }
.note-list { color: var(--ink-soft); line-height: 1.7; }
.note-list li { margin-bottom: .5rem; }
