/* "Data to explore" page (data.html, zh/data.html): dataset cards, the jump list and the source
   notes. Loaded after site.css and built only from its colour tokens, so light and dark mode follow. */

.ds-host { margin: 18px 0 0; font-size: 15px; color: var(--ink-3); max-width: 40em; }

section.ds-section { padding: 52px 0; }
.ds-section .section-head { margin-bottom: 24px; }
.ds-section .section-head h2 { margin-bottom: .25em; }
.ds-section .section-head .lede { font-size: 1.05rem; margin: 0; }
#licences p { color: var(--ink-2); }

.ds-tip { margin-top: 22px; }
.ds-tip strong { color: var(--ink); }

/* The jump list: one pill per section, with its count. */
.ds-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.ds-jump a {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--card); color: var(--ink-2);
  font-size: 14.5px; text-decoration: none;
}
.ds-jump a:hover { border-color: var(--ink-3); color: var(--ink); }
.ds-jump a span { font: 600 11.5px/1 var(--mono); color: var(--seal); }

/* Dataset cards. */
.ds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.ds {
  display: flex; flex-direction: column; min-width: 0;
  padding: 20px 20px 18px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
}
.ds h3 { margin: 0 0 4px; font-size: 1.2rem; }
.ds-src { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-3); }
.ds-chips { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ds-chips li {
  font: 600 11.5px/1.35 var(--mono); letter-spacing: .02em; color: var(--ink-2);
  background: var(--paper-2); border: 1px solid transparent; border-radius: 6px; padding: 3px 7px;
  overflow-wrap: anywhere;
}
.ds-chips li.ds-flag { color: var(--seal); background: transparent; border: 1px dashed var(--seal); }
.ds-why { margin: 0 0 16px; color: var(--ink-2); font-size: 15.5px; flex: 1; overflow-wrap: break-word; }
.ds-why code, .claims code { overflow-wrap: anywhere; }
.ds-get {
  align-self: flex-start; font-weight: 600; font-size: 15px; text-decoration: none;
  padding: 7px 12px; border-radius: 9px; border: 1px solid var(--rule); background: var(--paper);
}
.ds-get:hover { border-color: var(--accent); }

@media (max-width: 640px) {
  section.ds-section { padding: 40px 0; }
  .ds { padding: 18px 16px 16px; }
}
