/* Datasets — listing + detail. Scoped under .dset-page; uses the theme's tokens
 * (--accent, --ink, --muted, --line, --bg-2, --font-head/body) so it matches the
 * rest of the site. Layout follows the Stage-2 datasets mockup.
 * Reusable list classes (.dset-toolbar/.dset-grid/.dset-card) pair with filter-list.js. */

.dset-page { --dset-radius: 16px; }

/* hero — dark, matching the datasets mockup (listing + detail share it) */
.dset-hero, .dset-single-hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.dset-hero::before, .dset-single-hero::before {
  content: ""; position: absolute; top: -160px; right: -120px; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(0,174,226,.38), rgba(37,99,235,.16) 45%, transparent 70%);
  filter: blur(8px); pointer-events: none; z-index: 0;
}
.dset-hero .wrap, .dset-single-hero .wrap { position: relative; z-index: 1; }
.dset-hero .breadcrumb, .dset-hero .breadcrumb a,
.dset-single-hero .breadcrumb, .dset-single-hero .breadcrumb a { color: rgba(255,255,255,.55); }
.dset-hero h1, .dset-single-hero h1 { color: #fff; }
.dset-hero h1 { font-weight: 900; font-size: clamp(38px,5vw,62px); line-height: 1.06; letter-spacing: -.03em; max-width: 17ch; }
.dset-hero .lead { color: #D5DAE4; }
/* plain dot+label eyebrow (mock style) — blue tilted square glyph */
.dset-hero .eyebrow { padding: 0; border: 0; background: none; border-radius: 0; color: #fff; display: inline-flex; align-items: center; gap: 9px; }
.dset-hero .eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); transform: rotate(12deg); }

.dset-hero .dset-search {
  margin-top: 26px; max-width: 560px; position: relative; display: flex; align-items: center;
}
.dset-hero .dset-search svg { position: absolute; left: 16px; color: rgba(255,255,255,.5); pointer-events: none; }
.dset-hero .dset-search input {
  width: 100%; font-family: var(--font-body); font-size: 15px; padding: 14px 16px 14px 46px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff;
}
.dset-hero .dset-search input::placeholder { color: rgba(255,255,255,.5); }
.dset-hero .dset-search input:focus { outline: none; border-color: var(--accent); }

/* listing */
.dset-listing { padding: 36px 0 88px; background: var(--bg-2); }
.dset-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.dset-toolbar select {
  font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 11px;
  padding: 11px 34px 11px 15px; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2357617B' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.dset-toolbar select:focus { outline: none; border-color: var(--accent); }
.dset-count { margin-left: auto; color: var(--muted); font-size: 14px; font-weight: 600; }

.dset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dset-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--dset-radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .18s; color: inherit;
}
.dset-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--surface-line); }
.dset-thumb {
  height: 132px; position: relative; display: flex; align-items: flex-end; padding: 14px;
}
.dset-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dset-tp {
  position: relative; z-index: 1; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: #fff; background: rgba(0,0,0,.32); padding: 5px 10px; border-radius: 999px;
}
.dset-new {
  position: absolute; top: 12px; left: 12px; z-index: 1; background: #FFAB40; color: #3a2600;
  font-size: 10.5px; font-weight: 800; padding: 4px 9px; border-radius: 999px;
}
.dset-glyph { position: absolute; top: 11px; right: 12px; z-index: 1; opacity: .92; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.dset-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.dset-body h3 { font-family: var(--font-head); font-size: 16px; font-weight: 800; line-height: 1.28; color: var(--ink); }
.dset-mkrow { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.dset-mk { font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 5px; background: var(--bg-3); color: var(--muted); }
.dset-meta { margin-top: 10px; color: var(--muted); font-size: 12.5px; font-weight: 600; display: flex; gap: 12px; }
.dset-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.dset-price { font-weight: 800; font-size: 14.5px; color: var(--ink); }
.dset-go { margin-left: auto; color: var(--accent); font-weight: 700; font-size: 13.5px; }
.dset-empty {
  padding: 50px; text-align: center; color: var(--muted); border: 1px dashed var(--line);
  border-radius: var(--dset-radius); background: var(--surface); margin-top: 4px;
}

/* single */
.dset-single-hero .dset-single-meta { margin-top: 16px; display: flex; gap: 18px; flex-wrap: wrap; color: rgba(255,255,255,.72); font-size: 14px; font-weight: 600; }
.dset-detail { padding: 44px 0 88px; background: var(--bg-2); }
.dset-detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.dset-detail-main .dset-overview { color: var(--muted); font-size: 16.5px; line-height: 1.7; }
.dset-detail-main .dset-overview img { border-radius: 12px; margin: 16px 0; }
.dset-h2 { font-family: var(--font-head); font-size: 24px; font-weight: 800; color: var(--ink); margin: 34px 0 12px; }
.dset-inside { margin: 0 0 0 20px; padding: 0; }
.dset-inside li { color: var(--muted); line-height: 1.7; margin-bottom: 6px; list-style: disc; }
.dset-deliv { display: flex; gap: 8px; flex-wrap: wrap; }
.dset-deliv span { font-size: 13px; font-weight: 700; background: var(--bg-3); color: var(--muted); padding: 7px 12px; border-radius: 8px; }
.dset-method { color: var(--muted); line-height: 1.7; }
.dset-method a { color: var(--accent); text-decoration: underline; }

.dset-detail-side { position: sticky; top: 96px; }
.dset-pricebox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--dset-radius); padding: 22px; box-shadow: var(--shadow); }
.dset-pricebox-h { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.dset-tiers { display: flex; flex-direction: column; gap: 2px; margin: 14px 0 18px; }
.dset-tier { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 9px 0; border-bottom: 1px dashed var(--line); }
.dset-tier:last-child { border-bottom: none; }
.dset-tier b { color: var(--ink); font-weight: 800; }
.dset-cta { width: 100%; justify-content: center; margin-bottom: 10px; }
.dset-note { margin-top: 6px; color: var(--faint); font-size: 12.5px; line-height: 1.5; }

@media (max-width: 900px) {
  .dset-grid { grid-template-columns: 1fr 1fr; }
  .dset-detail-grid { grid-template-columns: 1fr; }
  .dset-detail-side { position: static; }
}
@media (max-width: 600px) { .dset-grid { grid-template-columns: 1fr; } }
