:root {
  --monospace-font: "Fira Code", "Courier New', consolas, monospace", monospace;
  --system-font: "Open Sans", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

  --ratio: 1.5;
  --s-5: calc(1rem * pow(var(--ratio), -5));
  --s-4: calc(1rem * pow(var(--ratio), -4));
  --s-3: calc(1rem * pow(var(--ratio), -3));
  --s-2: calc(1rem * pow(var(--ratio), -2));
  --s-1: calc(1rem * pow(var(--ratio), -1));
  --s0: 1rem;
  --s1: calc(1rem * pow(var(--ratio), 1));
  --s2: calc(1rem * pow(var(--ratio), 2));
  --s3: calc(1rem * pow(var(--ratio), 3));
  --s4: calc(1rem * pow(var(--ratio), 4));
  --s5: calc(1rem * pow(var(--ratio), 5));

  --radius: 6px;

  color-scheme: light dark;
  

  /* theme colors — light-dark(light-value, dark-value) */
  --link-color: light-dark(#0088cc, #c5eff7);
  --doc-tip-background: light-dark(#F7F7F7, #2e293a);
  --panel-border: light-dark(#e8ecf1, #3a3a42);
  --code-color: light-dark(#1f2328, #e6edf3);
  --shadow-color: hsla(0, 0%, 0%, .1);
  --code-fence-border-color: light-dark(#d1d9e0, #30363d);
  --code-background: light-dark(#f6f8fa, #161b22);
  --tweet-border: 1px solid var(--panel-border);
  --text-color: light-dark(#020202, #F7F7F7);
  --heading-color: light-dark(#2e293a, rgb(229, 231, 235));
  --diagram-background: #212d30;
  --brand-color: green;
  --copyright-color: lightslategray;

  /* Syntax colors, built from GitHub's Primer syntax hues.
       Roles rather than one hue per token kind: keywords, types, the modules
       and namespaces that hold them, callables, values, strings, and one mute
       for anything the reader is not meant to focus on. Operators and
       punctuation are left as plain text, the way GitHub renders them. */

  /* keywords and preprocessor directives */
  --code-keywords-color: light-dark(#cf222e, #ff7b72);
  --code-preprocessor-color: light-dark(#cf222e, #ff7b72);

  /* modules and namespaces, the containers rather than the types themselves */
  --code-module-color: light-dark(#116329, #7ee787);

  /* types */
  --code-reference-color: light-dark(#953800, #ffa657);
  --code-value-color: light-dark(#953800, #ffa657);
  --code-interface-color: light-dark(#953800, #ffa657);
  --code-typearg-color: light-dark(#953800, #ffa657);
  --code-disposable-color: light-dark(#953800, #ffa657);

  /* things you call: functions and active patterns */
  --code-function-color: light-dark(#8250df, #d2a8ff);
  --code-activepattern-color: light-dark(#8250df, #d2a8ff);

  /* values: union cases, enum cases, properties, numbers, mutable bindings */
  --code-unioncase-color: light-dark(#0550ae, #79c0ff);
  --code-enumeration-color: light-dark(#0550ae, #79c0ff);
  --code-property-color: light-dark(#0550ae, #79c0ff);
  --code-numbers-color: light-dark(#0550ae, #79c0ff);
  --code-mutable-color: light-dark(#0550ae, #79c0ff);

  /* strings, and the escapes and format specifiers inside them */
  --code-strings-color: light-dark(#0a3069, #a5d6ff);
  --code-printf-color: light-dark(#953800, #ffa657);
  --code-escaped-color: light-dark(#953800, #ffa657);

  /* identifiers, operators and punctuation read as plain text */
  --code-identifiers-color: var(--code-color);
  --code-operators-color: var(--code-color);
  --code-punctuation-color: var(--code-color);

  /* muted: comments, fsi output, inactive code, line numbers */
  --code-comment-color: light-dark(#59636e, #9198a1);
  --code-fsioutput-color: light-dark(#59636e, #9198a1);
  --code-inactive-color: light-dark(#818b98, #656c76);
  --code-linenumbers-color: light-dark(#818b98, #656c76);

  /* compiler errors */
  --code-error-color: light-dark(#cf222e, #ff7b72);



  --measure: 70ch;

  font-family: var(--system-font);
  font-size: calc(1rem + 0.15vw);

  color: var(--text-color);
}


/*--------------------------------------------------------------------------
  Links
/*--------------------------------------------------------------------------*/
a {
  color: var(--link-color);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 
 {
  color: var(--heading-color);

  & a,
  & a:hover,
  & a:active,
  & a:visited {
    color: inherit;
    text-decoration: inherit;
    outline: none;
  }

}


*,
*::before,
*::after
{
  margin: 0;
  box-sizing: border-box;
  max-inline-size: var(--measure);
}

html,
body,
div,
header,
nav,
main,
footer
{
  max-inline-size: none;
}

/*--------------------------------------------------------------------------
  Fonts
/*--------------------------------------------------------------------------*/

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: normal;
  src: url(./fonts/OpenSans-Regular.ttf) format('truetype');
}

@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: normal;
  src: url(./fonts/OpenSans-Italic.ttf) format('truetype');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: normal;
  src: url(./fonts/OpenSans-Bold.ttf) format('truetype');
}

@font-face {
  font-family: 'Fira Code';
  font-optical-sizing: auto;
  font-style: normal;
  src: url(./fonts/FiraCode-VariableFont_wght.ttf) format('truetype');
}

;
/*--------------------------------------------------------------------------
  Formatting for F# code snippets
/*--------------------------------------------------------------------------*/


/* string */
span.s {
  color: var(--code-strings-color);
}

/* printf formatters */

span.pf {
  color: var(--code-printf-color);
}

/* escaped chars */

span.esc {
  color: var(--code-escaped-color);
}

/* identifiers: 'id' comes from the F# path, 'i' from the non-F# path */

span.id,
span.i {
  color: var(--code-identifiers-color);
}

/* module */

span.m {
  color: var(--code-module-color);
}

/* reference type */

span.rt {
  color: var(--code-reference-color);
}

/* value type */

span.vt {
  color: var(--code-value-color);
}

/* interface */

span.if {
  color: var(--code-interface-color);
}

/* type argument */

span.ta {
  color: var(--code-typearg-color);
}

/* disposable */

span.d {
  color: var(--code-disposable-color);
}

/* property */

span.prop {
  color: var(--code-property-color);
}

/* punctuation */

span.pn {
  color: var(--code-punctuation-color);
}

/* function */

span.fn {
  color: var(--code-function-color);
}

/* active pattern */

span.pat {
  color: var(--code-activepattern-color);
}

/* union case */

span.uc {
  color: var(--code-unioncase-color);
}

/* enumeration */

span.en {
  color: var(--code-enumeration-color);
}

/* keywords */

span.k {
  color: var(--code-keywords-color);
}

/* comment */

span.c {
  color: var(--code-comment-color);
  font-weight: 400;
  font-style: italic;
}

/* operators */

span.o {
  color: var(--code-operators-color);
}

/* numbers */

span.n {
  color: var(--code-numbers-color);
}

/* mutable var or ref cell */

span.mv {
  color: var(--code-mutable-color);
  font-weight: bold;
}

/* inactive code, excluded by a conditional define */

span.inactive {
  color: var(--code-inactive-color);
}

/* preprocessor: 'pp' comes from the F# path, 'prep' from the non-F# path */

span.pp,
span.prep {
  color: var(--code-preprocessor-color);
}

/* fsi output */

span.fsi {
  color: var(--code-fsioutput-color);
}

/* compiler error, the message is in the tooltip */

span.cerr {
  text-decoration: underline wavy var(--code-error-color);
  text-underline-offset: 0.2em;
}

/* omitted code, the hidden lines are in the tooltip */

span.omitted {
  color: var(--code-inactive-color);
  border-bottom: 1px dotted var(--code-inactive-color);
  cursor: help;
}



/* tool tip */
div.fsdocs-tip {
  background-color: var(--doc-tip-background);
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  padding: var(--s-1);
  font-family: var(--monospace-font);
  font-variant-ligatures: none;
  color: var(--code-color);
  box-shadow: 0 1px 1px var(--shadow-color);
  margin: 0;

  /* the doc comment under a signature, in the color a comment has in a snippet */

  & em {
    color: var(--code-comment-color);
    font-style: italic;
  }
}

@keyframes fsdocs-tip-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Reset UA inset so JS-supplied left/top control position. */
div.fsdocs-tip:popover-open {
  position: fixed;
  inset: unset;
  animation: fsdocs-tip-fade-in 120ms ease-out;
  cursor: text;
  user-select: text;
}

[data-fsdocs-tip] {
  cursor: pointer;
}


pre.fssnip
{
  padding: var(--s-1);
  
  border: 1px solid var(--code-fence-border-color);
  border-radius: var(--radius);
  border-collapse: separate;
  
  white-space: pre;

  background-color: var(--code-background);

  overflow-x: scroll;
}

code {
  color: var(--code-color);
  font-family: var(--monospace-font);
  font-variant-ligatures: none;
  
  line-height: var(--s1);
}

code[lang='txt'] {
  word-wrap: break-word;
  white-space: pre-wrap;
}

/*--------------------------------------------------------------------------
  Formatting for page & standard document content
/*--------------------------------------------------------------------------*/

body {
  margin: 0;
  padding: var(--s0);
}


h1 {
  font-size: var(--s2);
  font-weight: 400;
}

h2 {
  font-size: var(--s1);
  font-weight: 500;
}

h3 {
  font-size: var(--s0);
  font-weight: 600;
}


/* Make table headings and td.title bold */
td.title,
thead {
  font-weight: bold;
}

/*--------------------------------------------------------------------------
  Additional formatting for the homepage
/*--------------------------------------------------------------------------*/

time {
  font-style: italic;
}

header h1
{
  font-weight: bold;
  color: var(--brand-color);
}

nav {
  & ul {
    padding-inline: 0;
  }
  & li {
    list-style-type: none;
    white-space: nowrap;
  }
}

.copyright {
  text-align: center;
  font-size: var(--s-1);
  color: var(--copyright-color);
}


img[alt='Diagram'] {
  margin-left: auto;
  margin-right: auto;
  display: block;
  color: var(--);
  background-color: var(--diagram-background);
  padding: var(--s1);
  border-radius: var(--radius);
}

.twitter-tweet {
  border: var(--tweet-border);
  border-radius: var(--radius);
  padding: var(--s0);
  font-size: 80%;
  max-inline-size: 50ch;

  & p {
    margin-block-end: var(--s0);
  }
}

.twitter-tweet p {
  line-height: inherit !important;
  font-size: inherit !important;
}

/* Layout */


.stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  & > * {
    margin-block: 0;
  } 

  & > * + * {
    margin-block-start: var(--space, var(--s1));
  }

}

.stack.small {
  --space: 0;
}


.with-sidebar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);

  & > :last-child {
    flex-grow: 1;
  }

  & > :first-child {
    flex-basis: 0;
    flex-grow: 999;
    min-inline-size: 60%;
  }
}

  
.center {
  box-sizing: content-box;
  margin-inline: auto;
  max-inline-size: var(--measure);
}

.full-center {
  box-sizing: content-box;
  margin-inline: auto;
  text-align: center;
  max-inline-size: var(--measure);
  display:flex;
  flex-direction: column;
  align-items: center;

}
 
.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}