/* tickwave.css: <tickwave-view> and <tickwave-chart> before their modules define them, laid out as
   the elements lay out, so neither moves the page when it is defined. A view takes its summary from
   the spans a page writes into it, <span slot="title"> and <span slot="facts">, and leaves the
   button's cell empty. A chart takes its plot's height from --tickwave-chart-height, and a readout
   below the plot the lines --tickwave-chart-readout-lines states. Every rule is in :where(), so any
   rule of the page's wins. */
:where(tickwave-view:not(:defined):not([hidden])) { color: var(--ink, CanvasText); font-family: var(--font-text, system-ui, sans-serif); font-size: 14px; line-height: 1.4;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--tickwave-summary-gap, 2px 12px);
  padding: var(--tickwave-summary-padding, 8px 10px 8px 14px); background: var(--tickwave-summary-background, var(--surface, Canvas));
  border-style: solid; border-width: var(--tickwave-summary-border-width, 1px); border-color: var(--tickwave-summary-border-color, var(--hair, GrayText));
  border-radius: var(--tickwave-summary-radius, 10px); }
:where(tickwave-view:not(:defined):not([hidden])) > :where([slot="title"]) { grid-row: 1; grid-column: 1; font-weight: 600; overflow-wrap: anywhere; font-size: var(--tickwave-title-size, 1em); }
:where(tickwave-view:not(:defined):not([hidden])) > :where([slot="facts"]) { grid-row: 2; grid-column: 1; color: var(--ink-2, GrayText); font-size: var(--tickwave-facts-size, 13px); min-height: 1lh; }
:where(tickwave-view:not(:defined):not([hidden]))::before, :where(tickwave-view:not(:defined):not([hidden]))::after { grid-row: 1 / 3; grid-column: 2; box-sizing: border-box; font-size: var(--tickwave-open-button-size, 13px); line-height: 1.2;
  padding: var(--tickwave-open-button-padding, 3px 9px); min-height: var(--tickwave-open-button-height, 26px);
  border: 1px solid transparent; visibility: hidden; }
:where(tickwave-view:not(:defined):not([hidden]))::before { content: "Open"; }
:where(tickwave-view:not(:defined):not([hidden]))::after { content: "Close"; }
:where(tickwave-view[download]:not(:defined):not([hidden]))::after { content: "Download\200F Open\A Download\200F Close"; white-space: pre;
  display: grid; grid-template-columns: max-content 10px; border-style: solid; border-color: transparent;
  border-width: var(--tickwave-open-button-padding, 3px 9px); border-top-width: 0; border-bottom-width: 0; padding-top: 0; padding-bottom: 0;
  min-height: 0; height: 0; overflow: hidden; }
:where(tickwave-view[download][annotations]:not(:defined):not([hidden]))::after { content: "Download\200F Annotations\200F Open\A Download\200F Annotations\200F Close"; white-space: pre;
  display: grid; grid-template-columns: max-content 18px; border-style: solid; border-color: transparent;
  border-width: var(--tickwave-open-button-padding, 3px 9px); margin: var(--tickwave-open-button-padding, 3px 9px); margin-top: 0; margin-bottom: 0; border-top-width: 0; border-bottom-width: 0; padding-top: 0; padding-bottom: 0;
  min-height: 0; height: 0; overflow: hidden; }
:where(tickwave-chart:not(:defined):not([hidden])) { display: block; }
:where(tickwave-chart:not(:defined):not([hidden]))::before { content: ""; display: block; height: var(--tickwave-chart-height, 330px); }
:where(tickwave-chart[readout="below"]:not(:defined):not([hidden]))::after { content: ""; display: block;
  height: calc(var(--tickwave-chart-readout-lines, 0) * 18.85px); }
