/* Dataset card, shared by /datasets/ and the homepage (renderCard in
   directory-render.js): tinted panel with a small table mock, then icon,
   name, one sentence, shape and the link. */
.ds .dir-card { display: flex; flex-direction: column; width: 100%; border: 1px solid var(--ds-border); border-radius: var(--ds-r-lg); overflow: hidden; background: var(--ds-canvas); color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .25s, transform .25s cubic-bezier(.16, 1, .3, 1); }
.ds .dir-card:hover { border-color: var(--ds-border-strong); box-shadow: 0 18px 40px -28px rgba(101, 61, 233, .5); transform: translateY(-2px); }
.ds .dir-card:focus-visible { outline: 2px solid var(--ds-primary); outline-offset: 3px; }

.ds .dc-art { position: relative; display: grid; place-items: center; padding: 14px 20px; overflow: hidden; isolation: isolate; background: var(--a1); }
.ds .dc-art::before { content: ""; position: absolute; inset: -25%; z-index: -1; filter: blur(36px); background: radial-gradient(45% 50% at var(--x1) var(--y1), var(--c1) 0%, transparent 70%), radial-gradient(45% 50% at var(--x2) var(--y2), var(--c2) 0%, transparent 70%), linear-gradient(180deg, var(--a1), var(--a2)); }
.ds .dc-tone-a { --a1: #E6F5EA; --a2: #D3EDDB; --c1: #A8DDBB; --x1: 15%; --y1: 20%; --c2: #EEF9F1; --x2: 85%; --y2: 85%; --tile: #D8EDDF; --ink: #31764D; }
.ds .dc-tone-b { --a1: #FDEFE3; --a2: #F9DFC9; --c1: #FAD3B3; --x1: 80%; --y1: 15%; --c2: #FFF6EE; --x2: 20%; --y2: 90%; --tile: #FCE4CF; --ink: #A75220; }
.ds .dc-tone-c { --a1: #FCEDF1; --a2: #F5DAE3; --c1: #F1C3D3; --x1: 20%; --y1: 80%; --c2: #FDF4F7; --x2: 85%; --y2: 20%; --tile: #F4DEE5; --ink: #A04769; }
.ds .dc-tone-d { --a1: #EAF2FD; --a2: #D8E7FA; --c1: #BBD6F5; --x1: 85%; --y1: 80%; --c2: #F3F8FE; --x2: 15%; --y2: 15%; --tile: #DBE9FA; --ink: #37689D; }

.ds .dc-mock { width: 100%; max-width: 300px; border-radius: var(--ds-r-md); background: #fff; box-shadow: 0 1px 0 rgba(23, 21, 31, .04), 0 16px 34px -18px rgba(54, 30, 140, .45); font-size: 11px; line-height: 1.3; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.ds .dir-card:hover .dc-mock { transform: translateY(-3px) scale(1.015); }
.ds .dc-mock-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; padding: 7px 11px; border-bottom: 1px solid var(--ds-border); }
.ds .dc-mock-name { overflow: hidden; color: var(--ds-ink); font-family: var(--ds-mono); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.ds .dc-mock-name:empty { width: 40%; height: 8px; border-radius: 4px; background: var(--ds-surface-alt); }
.ds .dc-mock-run { display: inline-flex; flex: none; align-items: center; gap: 5px; padding: 2px 7px; border-radius: 999px; background: var(--ds-success-soft); color: var(--ds-success); font-size: 10px; font-weight: 500; }
.ds .dc-mock-run.is-manual { background: var(--ds-surface-alt); color: var(--ds-muted); }
.ds .dc-mock-run i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.ds .dc-rows { margin: 0; padding: 0; list-style: none; }
.ds .dc-rows li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 6px 12px; }
.ds .dc-rows li + li { border-top: 1px solid var(--ds-surface-alt); }
.ds .dc-row-main { display: grid; min-width: 0; }
.ds .dc-row-main b { overflow: hidden; color: var(--ds-ink); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.ds .dc-row-main small { overflow: hidden; color: var(--ds-muted); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.ds .dc-row-val { flex: none; max-width: 45%; overflow: hidden; color: var(--ds-ink); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
/* Placeholder rows until the sample arrives */
.ds .dc-skel b, .ds .dc-skel small, .ds .dc-skel .dc-row-val { display: block; height: 7px; border-radius: 4px; background: var(--ds-surface-alt); }
.ds .dc-skel .dc-row-main { gap: 6px; width: 60%; }
.ds .dc-skel b { width: 80%; }
.ds .dc-skel small { width: 50%; }
.ds .dc-skel .dc-row-val { width: 36px; }

.ds .dc-body { display: flex; flex: 1; flex-direction: column; padding: 20px 20px 22px; }
.ds .dc-body h2, .ds .dc-body h3 { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--ds-ink); font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; overflow-wrap: anywhere; }
.ds .dc-name { padding-top: 3px; }
.ds .dc-icon { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: var(--ds-r-sm); background: var(--tile, var(--ds-primary-soft)); color: var(--ink, var(--ds-primary)); overflow: hidden; }
.ds .dc-icon .icon { width: 16px; height: 16px; }
.ds .dc-icon.is-image { border: 1px solid var(--ds-border); background: #fff; }
.ds .dc-icon img { width: 20px; height: 20px; object-fit: contain; }
.ds .dir-card .dir-card-desc { margin: 10px 0 0; color: var(--ds-body); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ds .dc-shape { margin: 12px 0 0; color: var(--ds-muted); font-size: 13px; }
.ds .dc-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 18px; color: var(--ds-primary); font-size: 14px; font-weight: 500; }
.ds .dc-link .icon { width: 15px; height: 15px; transition: transform .2s; }
.ds .dir-card:hover .dc-link .icon { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) { .ds .dir-card, .ds .dc-mock { transition: none; } .ds .dir-card:hover, .ds .dir-card:hover .dc-mock { transform: none; } }
