/* Inner pages (campaigns, marketplace, dataset): page header, summary figures, chips, data table, sheet dialog, toast. */
.page-head { padding: 72px 0 40px; }
.page-head__inner { display: grid; gap: 14px; justify-items: start; }
.figures { justify-self: stretch; width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.figures li { display: grid; gap: 4px; padding: 18px 20px 0 0; }
.figures li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.figures b { font: 400 26px/1 var(--serif); }
.figures span { color: var(--ink-3); font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; font: 500 14px var(--sans); cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }

.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); }
.table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.table th { padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink-3); font-weight: 500; text-align: left; white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.table .t-name { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.table .t-name img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.table .t-name small { display: block; color: var(--ink-3); font-size: 13px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--tint); font-size: 13px; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.status--running::before { background: var(--accent); }
.status--done::before { background: var(--positive); }

.sheet { width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-frame); background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(26, 24, 20, 0.5); }
.sheet::backdrop { background: var(--backdrop); }
.sheet__body { display: grid; gap: 18px; padding: 28px; }
.sheet__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--tint); cursor: pointer; }
.sheet canvas { width: 100%; aspect-ratio: 4 / 1; object-fit: cover; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; }
.facts ul { margin: 0; padding-left: 18px; }
.sheet__done { padding: 14px 16px; border-radius: var(--r-btn); background: var(--positive-soft); color: var(--positive); }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 80; max-width: calc(100% - 32px); padding: 12px 18px; transform: translateX(-50%); border-radius: var(--r-btn); background: var(--ink); color: var(--on-ink); font-size: 14px; pointer-events: none; }
.toast[hidden] { display: none; }

@media (max-width: 640px) {
  .page-head { padding: 40px 0 28px; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .figures li { padding-bottom: 14px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .sheet { width: 100%; max-width: 100%; max-height: 92svh; margin: auto 0 0; border-radius: var(--r-frame) var(--r-frame) 0 0; }
  .sheet__body { padding: 22px 20px; }
}

/* Privacy policy: the narrow serif column from the home page, with a jump list. */
.legal { width: 100%; max-width: calc(700px + var(--gutter) * 2); margin: 0 auto; padding: 72px var(--gutter) 96px; }
.legal__head { display: grid; gap: 10px; margin-bottom: 28px; }
.legal__meta { color: var(--ink-3); font-size: 14px; }
.legal__toc { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-bottom: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.legal__toc a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--tint); font-size: 13px; }
.legal__toc a:hover { background: var(--tint-2); }
.legal section { display: grid; gap: 12px; padding: 32px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 16px); }
.legal section:last-child { border-bottom: 0; }
.legal h2 { font: 400 var(--fs-h2)/1.25 var(--serif); }
.legal h3 { margin-top: 8px; font: 500 15px/1.3 var(--sans); }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.legal ul { display: grid; gap: 8px; margin: 0; padding-left: 20px; }
.legal li b { color: var(--ink); font-weight: 500; }
@media (max-width: 860px) {
  .legal { padding-top: 48px; }
  .legal__toc a { min-height: 44px; }
}
