/* An artifact, the one design system every artifact shares. Uses only the suite's tokens (view.css on the view site,
   style.css on the dashboard), so it is right in light and dark and on phones without any author styling. */
.doc { max-width: 760px; width: 100%; margin: 0 auto; padding: 18px 0 36px; }
.doc.wide { max-width: 1100px; }
.doc-head { padding: 20px 0 10px; }
.doc-head h1 { margin: 0; font: 700 40px/1.1 var(--display); letter-spacing: -0.026em; color: var(--ink); overflow-wrap: anywhere; }
.doc-head .lede { margin: 10px 0 0; font: 400 19px/1.45 var(--display); letter-spacing: -0.014em; color: var(--ink-3); }
.doc-head .meta { margin-top: 12px; color: var(--ink-4); font-size: 13px; }
.doc .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.doc .tag { font: 500 11.5px/1 var(--text); color: var(--ink-3); background: var(--raise-2); padding: 5px 9px; border-radius: 980px; }
.doc .tag.lock { color: var(--blue); background: var(--blue-soft); }

.doc-body { color: var(--ink-2); }
.doc-body > :first-child { margin-top: 18px; }
.doc-body h2 { margin: 40px 0 12px; font: 600 26px/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.doc-body h3 { margin: 30px 0 10px; font: 600 20px/1.25 var(--display); letter-spacing: -0.016em; color: var(--ink); }
.doc-body h4, .doc-body h5, .doc-body h6 { margin: 24px 0 8px; font: 600 16px/1.3 var(--display); color: var(--ink); }
.doc-body p { margin: 12px 0; }
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body ul, .doc-body ol { margin: 12px 0; padding-left: 24px; }
.doc-body li { margin: 4px 0; }
.doc-body li > ul, .doc-body li > ol { margin: 4px 0; }
.doc-body ul.tasks { list-style: none; padding-left: 4px; }
.doc-body .task { display: inline-block; width: 15px; height: 15px; border-radius: 4.5px; border: 1.5px solid var(--ink-4); margin-right: 9px; vertical-align: -2px; position: relative; }
.doc-body .task.done { background: var(--blue); border-color: var(--blue); }
.doc-body .task.done::after { content: ''; position: absolute; left: 3.5px; top: 1px; width: 4px; height: 7.5px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.doc-body code { font: 0.88em/1.4 var(--mono); background: var(--raise-2); padding: 1px 5px; border-radius: 5px; color: var(--ink); }
.doc-body hr { border: 0; border-top: 1px solid var(--hair); margin: 32px 0; }
.doc-body blockquote { margin: 16px 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--hair-2); color: var(--ink-3); }
.doc-body img { max-width: 100%; height: auto; border-radius: 14px; }
.doc-body figure { margin: 20px 0; }
.doc-body figure.img figcaption { color: var(--ink-4); font-size: 12.5px; margin-top: 6px; text-align: center; }

/* Raised surfaces: callouts, code, tables, charts, KPI tiles. */
.doc-body .callout { background: var(--raise); border-radius: 18px; padding: 14px 18px; margin: 20px 0; box-shadow: inset 3px 0 0 var(--tone, var(--blue)), var(--shadow, none); }
.doc-body .callout > :last-child { margin-bottom: 0; }
.doc-body .callout p { margin: 6px 0; }
.doc-body .callout-t { font: 600 13px/1.3 var(--text); color: var(--tone, var(--blue)); }
.doc-body .callout.tone-tip { --tone: var(--green); }
.doc-body .callout.tone-important { --tone: var(--purple); }
.doc-body .callout.tone-warning { --tone: var(--orange); }
.doc-body .callout.tone-caution { --tone: var(--red); }
.doc-body figure.code { background: var(--raise); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow, none); }
.doc-body figure.code figcaption { font: 500 11px/1 var(--mono); color: var(--ink-4); padding: 10px 16px 0; }
.doc-body figure.code pre { margin: 0; padding: 12px 16px 14px; overflow-x: auto; }
.doc-body figure.code code { background: none; padding: 0; font-size: 13px; line-height: 1.55; }
.doc-body .tablewrap { overflow-x: auto; background: var(--raise); border-radius: 16px; margin: 20px 0; box-shadow: var(--shadow, none); }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.doc-body th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--ink-3); padding: 11px 14px 9px; border-bottom: 1px solid var(--hair-2); white-space: nowrap; }
.doc-body td { padding: 10px 14px; border-bottom: 1px solid var(--hair); color: var(--ink-2); vertical-align: top; }
.doc-body tr:last-child td { border-bottom: 0; }
.doc-body th.r, .doc-body td.r { text-align: right; }
.doc-body th.c, .doc-body td.c { text-align: center; }

.doc-body .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 20px 0; }
.doc-body .kpi { background: var(--raise); border-radius: 18px; padding: 15px 17px 13px; box-shadow: var(--shadow, none); min-width: 0; }
.doc-body .kpi .l { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.doc-body .kpi .v { font: 600 28px/1.15 var(--display); letter-spacing: -0.022em; color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-body .kpi .d { font-size: 12px; color: var(--ink-3); margin-top: 3px; }

.doc-body figure.chart { background: var(--raise); border-radius: 18px; padding: 16px 18px 12px; box-shadow: var(--shadow, none); }
.doc-body figure.chart > figcaption { font: 600 15px/1.3 var(--display); color: var(--ink); margin-bottom: 8px; }
.doc-body .chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.doc-body .chart text { font: 12px var(--text); fill: var(--ink-3); }
.doc-body .chart text.val { fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.doc-body .chart .grid { stroke: var(--hair); stroke-width: 1; }
.doc-body .chart .grid.zero { stroke: var(--hair-2); }
.doc-body .chart .ln { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.doc-body .chart .pt { stroke: var(--raise); stroke-width: 2; }
.doc-body .chart rect.s1, .doc-body .chart .pt.s1, .doc-body .legend i.s1 { fill: var(--c1); background: var(--c1); } .doc-body .chart .ln.s1 { stroke: var(--c1); }
.doc-body .chart rect.s2, .doc-body .chart .pt.s2, .doc-body .legend i.s2 { fill: var(--c2); background: var(--c2); } .doc-body .chart .ln.s2 { stroke: var(--c2); }
.doc-body .chart rect.s3, .doc-body .chart .pt.s3, .doc-body .legend i.s3 { fill: var(--c3); background: var(--c3); } .doc-body .chart .ln.s3 { stroke: var(--c3); }
.doc-body .chart rect.s4, .doc-body .chart .pt.s4, .doc-body .legend i.s4 { fill: var(--c4); background: var(--c4); } .doc-body .chart .ln.s4 { stroke: var(--c4); }
.doc-body .chart rect.s5, .doc-body .chart .pt.s5, .doc-body .legend i.s5 { fill: var(--c5); background: var(--c5); } .doc-body .chart .ln.s5 { stroke: var(--c5); }
.doc-body .chart rect.s6, .doc-body .chart .pt.s6, .doc-body .legend i.s6 { fill: var(--c6); background: var(--c6); } .doc-body .chart .ln.s6 { stroke: var(--c6); }
.doc-body .chart rect.s7, .doc-body .chart .pt.s7, .doc-body .legend i.s7 { fill: var(--c7); background: var(--c7); } .doc-body .chart .ln.s7 { stroke: var(--c7); }
.doc-body .chart rect.s8, .doc-body .chart .pt.s8, .doc-body .legend i.s8 { fill: var(--c8); background: var(--c8); } .doc-body .chart .ln.s8 { stroke: var(--c8); }
.doc-body .chart rect:hover { opacity: .82; }
.doc-body .legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.doc-body .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.doc details.data { margin-top: 8px; font-size: 13px; }
.doc details.data summary { cursor: pointer; color: var(--ink-4); font-size: 12px; list-style: none; display: inline-block; }
.doc details.data summary::-webkit-details-marker { display: none; }
.doc details.data summary::before { content: '+ '; }
.doc details.data[open] summary::before { content: '- '; }
.doc details.data .tablewrap { box-shadow: none; background: none; margin: 6px 0 0; }
.doc details.textver { background: var(--raise); border-radius: 16px; padding: 12px 16px; margin-top: 16px; }
.doc details.textver .plain { margin-top: 10px; color: var(--ink-2); white-space: normal; }

/* Raw HTML in its sandbox. */
.doc .rawbox { background: var(--raise); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow, none); margin-top: 18px; }
.doc iframe.raw { display: block; width: 100%; height: calc(100vh - 200px); min-height: 420px; border: 0; background: #fff; }
.doc .rawnote { color: var(--ink-4); font-size: 12.5px; margin: 10px 2px 0; }

@media (max-width: 600px) {
  .doc { padding-top: 8px; }
  .doc-head h1 { font-size: 30px; }
  .doc-head .lede { font-size: 17px; }
  .doc-body h2 { font-size: 22px; margin-top: 32px; }
  .doc-body h3 { font-size: 18px; }
  .doc-body figure.chart { padding: 14px 12px 10px; }
  /* SVG text is in chart units, and the chart shrinks on a phone: bigger units keep it readable. */
  .doc-body .chart text { font-size: 19px; }
  .doc-body .chart-hbar text { font-size: 15px; }
  .doc-body .callout { padding: 12px 14px; }
  .doc-body .kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .doc-body .kpi .v { font-size: 22px; }
  .doc iframe.raw { height: 75vh; }
}

/* The library's live preview of raw HTML: full width, grows with its content. */
.doc iframe.raw.live { height: 420px; min-height: 0; border-radius: 12px; }
