:root {
  --sm--root--font-size: 14px;
  --lg--root--font-size: 16px;
  --root--font-size: 14px;
  --sm--font-size: 16px;
  --lg--font-size: 24px;
  
  --text--font-size: 1rem;
  --small-text--font-size: 0.8rem;
  --h1--font-size: 1.5rem;
  --h2--font-size: 1.3rem;
  --h3--font-size: 1.1rem;
  --h4--font-size: 1rem;
  --h5--font-size: .95rem;
  --cta--font-size: 1.3rem;
  --nav--link--font-size: 1.3rem;
  --nav--sublink--font-size: 1rem;
  
  --guide--nav--link--font-size: var(--text--font-size);
  --guide--nav--sublink--font-size: var(--small-text--font-size);
  
  --heading--font-family: Inter; 
  --nav--font-family: Inter;
  --cta--font-family: Inter;
  --text--font-family: 'PT Serif';
  
  --text-color: black;
  --background: white;
  --border-color: black;
  
  --bio--border: 1px solid var(--border-color);
  
  --sm--content-section--padding-left: 2rem;
  --lg--content-section--padding-left: 9rem;
  --content-section--padding-left: var(--lg--content-section--padding-left);
  --content-section--max-width: 1600px;

  --bottom-nav--height: 4rem;
}
  html {
    height: 99vh;
  }

  .page, .overlay {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 60px;
  }
  .overlay {
    pointer-events: none;
  }
  .overlay > * {
    pointer-events: all;
  }
  .page nav {
    grid-row-start: 1;
    width: 200px;
    max-width: 320px;
    overflow-y: scroll;
    padding-right: .5rem;
    height: Calc(100% - 74px);
    padding-bottom: 4rem;
  }
  .page header {
    grid-column-end: span 2;
  }

  header {
    display: flex;
    align-items: center;
    padding-left: 40px;
    height: 90px;
    background: black;
    color: white;
    gap: 2rem;
    font-family: Inter;
  }

  header .title {
    font-size: var(--nav-link--font-size);
  }

  header .logo {
    height: 90px;
    width: 90px;
  }

  header .logo img {
    width: 90px;
    height: auto;
  }

  header a {
    color: white;
  }

  nav ol {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  nav .chapter.title a {
    display:block;
    font-family: Inter;
    font-size: var(--guide--nav--link--font-size);
    padding: 12px 0;
    border-bottom: 3px solid var(--border-color);
    border-top: 3px solid var(--border-color);
  }

  nav li li {
    font-family: Inter;
    padding: 8px 0;
  }

  nav li li a {
    font-family: Inter;
    font-size: var(--guide--nav--sublink--font-size);
  }

  nav li li:not(li:first-child) {
    border-top: 1px solid var(--border-color);
  }
  
  nav li a.active {
    background: #fbee2e;
  }

  h1 {
    font-size: var(--h1--font-size);
    border-bottom: 3px solid var(--border-color);
    padding: 2rem 0;
  }
  

  h2 {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
  }

  #top + .anchor + h2 {
    border-top: none;
  }

  span.glossary {
    background: #ffef5c; padding: 0 2px; outline: 1px solid black;
    cursor: pointer;
  }

  .guide .content *:not(h1,h2,h3,h4,h5,h6, i.fa-solid) {
    font-family: var(--text--font-family);
  }

  .content a {
    text-decoration: underline;
  }


  .acknowledgements ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.acknowledgements p {
  margin: 0;
  line-height: 1.5em;
}

blockquote > :is(p:nth-last-child(2), p:last-child) {
  margin: 0;
}
/*
blockquote p:last-of-type {
  line-height:2em;
}
*/

.checklist ul li {
  text-indent: -1em;
  padding-left: 1em;
  margin-left: 1em;
}

.checklist ul li p:not(:first-child) {
  text-indent: initial;
}

.icon {
  display: inline-block;
  height: .9em;
  width: .9em;
  filter: invert(100%);

}

section.inverted .icon {
  filter: none;
}

section.inverted + h3 {
  margin-top: 1rem;
}

.icon img {
  width: 100%;
  height: 100%;
}

.checklist > ul {
  list-style: none;
}

.checklist ul li + li {
  margin-top: 1em;
}

.page {
  padding-left: var(--content-section--padding-left);
  padding-right: var(--content-section--padding-left);
  
}

nav {
  margin-left: Calc(-0.5 * var(--content-section--padding-left));
  padding-top: 2rem;
}

/* external link icon from: https://christianoliff.com/blog/styling-external-links-with-an-icon-in-css/ */
a[href^="http"]::after,
a[href^="https://"]::after
{
  content: "";
  width: 11px;
  height: 11px;
  margin-left: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5z'/%3E%3Cpath fill-rule='evenodd' d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0v-5z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  display: inline-block;
  color: var(--text-color);
  text-decoration: underline;
}

.inverted a[href^="http"]::after,
.inverted a[href^="https://"]::after
{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5z'/%3E%3Cpath fill-rule='evenodd' d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0v-5z'/%3E%3C/svg%3E");
}

.guide {
  height: auto;
}

.guide section {
  padding: 2rem;
}

.guide .content {
  height: 100%;
  padding-right: .5rem;
  padding-left: 1px;
  padding-bottom: 6rem;
}

.guide .page {
  min-width: 320px;
  height: 100%;
}

.guide hr {
  background: white;
  padding: .5em 0;
}

.underline {
  text-decoration: underline;
}

/* target the elder header wrapper to make sticky header */
.header-component {
  position: sticky;
  top: 0;
  z-index: 98;
}

.page .content {
  grid-column-start: 2;
}

.overlay .content-nav {
  grid-column-start: 2;
}

.popout {
  --text-color: white;
  --background: black;
  position: fixed;
  top: var(--popout--top, unset);
  bottom: var(--popout--bottom, unset);
  left: var(--popout--x);
  max-height: 600px;
  z-index: 10;
  background: var(--background);
  color: var(--text-color);
  padding: 1rem;
  font-family: var(--heading--font-family);
  width: var(--popout--width, auto);
  right: var(--popout--right, unset);
}

.popout > * {
  font-size: clamp(0.5rem, 100%, 1rem);
}

.popout button.close {
  display: none;
  position: absolute;
  top: 1rem;
  right: .8rem;
  border: none;
  cursor: pointer;
  background: var(--background);
  color: var(--text-color);
  font-size: 2rem;
  height: 1rem;
  line-height: 1rem;
}

.guide .anchor {
  margin-top: -74px;
  padding-top: 74px;
  display: inline-block;
}


  
hr {
  height: unset;
  border: 0;
  text-align: center;
}
hr:after {
  content: '***';
}

blockquote {
  border-left: .5em solid #ffef5c;
  padding-left: 1em;
  margin-left: 0;
}


  @media (max-width: 980px) {
    .page .content {
      grid-row-start: 1;
      grid-column-start: 1;
      grid-column-end: 3;
    }

    .popout {
      top: unset;
      bottom: 0;
      left: 0;
      right: 0;
      width: auto;
    }
    .popout button.close {
      display:initial;
    }
  }
  @media (min-width: 724px) and (max-width: 980px) {
    h1 {
      font-size: 2.1rem;
    }
    .page {
      grid-template-columns: auto;
      padding-left: 0;
      padding-right: 0;
    }
    .page .content {
      padding-left: var(--content-section--padding-left);
      padding-right: var(--content-section--padding-left);
    }
  }

  @media (max-width: 724px) {
    .page {
      --content-section--padding-left: 2rem;
    }
    .page .content {
      padding-right: 0;
    }
  }



