
/* style/fonts.css */
/* Vendored from Google Fonts.
 *
 * Families/variants used by the site:
 * - Lato: normal 400, normal 700, italic 400, italic 700
 * - IBM Plex Mono: normal 400, normal 700
 *
 * The CSS uses font-weight: 600 in a few places, but the previous Google
 * Fonts request did not include Lato 600. Browsers match that to 700.
 *
 * Keep the unicode-range split so browsers only fetch the subset they need.
 */
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/ibm-plex-mono-v20-cyrillic-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/ibm-plex-mono-v20-cyrillic-400-normal.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/ibm-plex-mono-v20-vietnamese-400-normal.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/ibm-plex-mono-v20-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/ibm-plex-mono-v20-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./fonts/ibm-plex-mono-v20-cyrillic-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./fonts/ibm-plex-mono-v20-cyrillic-700-normal.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./fonts/ibm-plex-mono-v20-vietnamese-700-normal.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./fonts/ibm-plex-mono-v20-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./fonts/ibm-plex-mono-v20-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/lato-v25-latin-ext-400-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/lato-v25-latin-400-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(./fonts/lato-v25-latin-ext-700-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(./fonts/lato-v25-latin-700-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/lato-v25-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/lato-v25-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./fonts/lato-v25-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./fonts/lato-v25-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}



/* style/typography.css */
/**
 * Vertical rhythm by Syncope
 * http://nowodzinski.pl/syncope
 *
 * Input: 16px base size, 1.75 line height (28px), 1.33 scale.
 *
 * For testing vertical rhythm enable the body style:
 */

/*body::after {
  content: '';
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  background-image: linear-gradient(to bottom, rgba( 32,160,255,.35 ) 1px, transparent 1px) !important;
  background-size: 100% 28px !important;
  background-position-y: 14px !important;
}*/

code,
kbd {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.94em;
  line-height: 14px;
}

html,
body {
  font-family: "Lato", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

.big {
  font-size: 51px;
  line-height: 48px;
  padding-top: 12px;
  margin-bottom: 16px;
  padding-bottom: 0;
  margin-top: 0;
}

h1 {
  font-size: 38px;  /* 1.33^3 * 16, rounded */
  line-height: 48px;
  padding-top: 12px;
  margin-bottom: 16px;
  padding-bottom: 0;
  margin-top: 0;
}

h2 {
  font-size: 28px;     /* 1.33^2 * 16, rounded */
  line-height: calc(var(--grid-line) * 1.5);
  padding-top: 28px;   /* 1 grid line */
  margin-bottom: 14px; /* 0.5 grid line */
  padding-bottom: 0;
  margin-top: 0;
}

h3, h4 {
  font-size: 21px;    /* 1.33 * 16, rounded */
  line-height: var(--grid-line);  /* one grid line */
  padding-top: 10px;  /* 10+18 = 1 grid line */
  margin-bottom: 18px;
  padding-bottom: 0;
  margin-top: 0;
}
h4 {
  font-size: 19px;
}

p,
ul,
ol,
summary {
  font-size: 16px;
  line-height: 1.75;  /* 28/16 */
  padding-top: 10px;
  margin-bottom: 18px;
  padding-bottom: 0;
  margin-top: 0;
}

ul, ol {
  ul, ol {
    padding-top: 0;
    margin-bottom: 0;
  }
}

blockquote {
  margin: 0 var(--side-padding) 14px 0;
  padding: 0 0 0 var(--side-padding);
  border-left: 2px solid var(--background-4);
}



/* style/colors.css */
/*
  Based on color scheme in https://docs.sublimetext.io
  but with slightly tweaked contrast progression,
  and a more contrasty shade of orrange.
*/

:root {
  /* light */
  --background-1: hsl(0 0% 100%); /* white */
  --background-2: hsl(0 0% 94%);  /* ..    */
  --background-3: hsl(0 0% 90%);  /* ..    */
  --background-4: hsl(0 0% 87%);  /* ..    */
  --background-5: hsl(0 0% 82%);  /* grey  */

  --highlight: rgb(from var(--background-4) r g b / 0.3); /* inline code */

  --foreground-1: hsl(240 5% 29%); /* black */
  --foreground-2: hsl(240 4% 40%); /* ..    */
  --foreground-3: hsl(240 3% 51%); /* ..    */
  --foreground-4: hsl(240 3% 60%); /* grey  */
  --white: hsl(0 0% 100%);

  --red-1: hsl(7 98% 56%);
  --red-2: hsl(7 92% 54%);
  --orange-1: hsl(32 94% 55%);
  --orange-2: hsl(32 92% 49%);
  --orange-3: hsl(32 90% 44%);
  --blue-1: hsl(198 97% 54%);
  --blue-2: hsl(198 88% 51%);
  --blue-3: hsl(198 84% 45%);
  --green-1: hsl(80 70% 49%);
  --green-2: hsl(80 67% 47%);
  --green-3: hsl(80 65% 42%);

  --state-failing-border-color: hsl(237.15deg 92% 54%);
  --state-failing-text-color: hsl(208.16deg 90.39% 52.64%);

  --purple-1: hsl(275 76% 58%);
  --pink-1: hsl(345 76% 58%);
  --graphite-1: hsl(245 21% 42%);

  --warning-message-background: hsl(0deg 0% 91.94%);
  --warning-message-border: hsl(0deg 0.23% 75.25%);
}

:root[data-theme='dark'] {
  /* dark */
  --background-1: hsl(214 17% 16%);
  --background-2: hsl(214 17% 18%);
  --background-3: hsl(211 14% 30%);
  --background-4: hsl(211 12% 35%);
  --background-5: hsl(210 11% 40%);

  --highlight: rgb(from var(--background-4) r g b / 0.3); /* inline code */

  --foreground-1: hsl(60 10% 84%);
  --foreground-2: hsl(60 5% 71%);
  --foreground-3: hsl(60 3% 59%);
  --foreground-4: hsl(60 2% 48%);

  --red-1: hsl(7 92% 54%);
  --red-2: hsl(7 98% 56%);
  --orange-1: hsl(32 92% 49%);
  --orange-2: hsl(32 94% 55%);
  --orange-3: hsl(32 97% 67%);
  --blue-1: hsl(198 88% 51%);
  --blue-2: hsl(198 97% 54%);
  --blue-3: hsl(198 98% 66%);
  --green-1: hsl(80 67% 47%);
  --green-2: hsl(80 70% 49%);
  --green-3: hsl(80 72% 58%);

  --state-failing-border-color: hsl(237.15deg 92% 54%);
  --state-failing-text-color: hsl(208.16deg 90.39% 52.64%);

  --purple-1: hsl(275 80% 64%);
  --pink-1: hsl(345 82% 62%);
  --graphite-1: hsl(245 21% 60%);

  --warning-message-background: hsl(214deg 20.59% 24.6%);
  --warning-message-border: hsl(0deg 0% 24.54%);
}



/* style/buttons.css */
/* utility classes for consistent buttons */
.button-group {
  display: flex;
  gap: 7px;
  padding-left: 0;
  line-height: 28px;
  padding-top: 3px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  list-style: none;

  li {
    display: block;
    margin: 0;
    padding: 0;
  }

  li.shield {
    display: flex;
  }
}

.button {
  all: unset;
  appearance: none;
  display: flex;
  align-items: center;
  gap: 1ex;
  margin: 0;
  padding: 3px 8px;
  line-height: 22px;
  border-radius: 3px;
  background: var(--background-3);
  color: var(--foreground-2);
  white-space: nowrap;
  cursor: pointer;
  outline-color: transparent;
  transition: color .1s ease-in-out, outline .1s ease-in-out, background .1s;

  &:hover {
    background: var(--background-4);
    text-decoration: none;
  }

  &.is-active {
    background: var(--background-4);
    box-shadow: inset 2px 2px 0px rgb(0 0 0 / 0.15);
    border: 1px solid #f8f8f8;
    border-width: 0 2px 2px 0;

    :root[data-theme='dark'] & {
      box-shadow: inset 2px 2px 0px rgb(0 0 0 / 25%);
      border-color: #666666;
    }
  }

  &:focus-visible {
    outline: 2px solid var(--orange-1);
  }

  &:disabled {
    opacity: .4;
    cursor: revert;
  }

  .count {
    font-size: 14px;
    color: var(--foreground-4);
  }
  &:has(.count) {
    align-items: baseline;
  }

  &.label-more,
  &.label-more:hover {
    padding-left: 0;
    padding-right: 0;
    background: none;
    @media (width < 732px) {
      padding-left: 6px;   /* these 6px come from packages.css: .labels a! */
    }
  }
  &.label-more:hover {
    color: var(--orange-2);
  }

  &.label {
    &[href*='language%20syntax'],
    &[href*='snippets'],
    &[href*='linting'],
    &[href*='auto-complete'],
    &[href*='color%20scheme'],
    &[href*='theme'] {
      color: var(--foreground-1);
      font-weight: bold;
    }
  }
}


span.button {
  cursor: revert;
  &:hover {
    background: var(--background-3);
  }
}



/* style/header.css */
header {
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0 auto 16px auto;
  padding: 10px var(--side-padding) 0 var(--side-padding);
  max-width: var(--max-content);
  color: var(--foreground-3);

  &:has(h1) {
    margin-bottom: 51px;
  }

  @media (max-width: 479px) {
    font-size: 13px;
  }

  * {
    margin: 0;
    padding: 0;
  }

  .top {
    display: flex;
    flex-direction: row;
  }

  .left-side {
    max-width: 78%;
  }

  .right-side {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
  }

  .small-nav {
    flex-basis: 100%;
    font-size: 18px;

    @media (min-width: 50rem) {
      display: none;
    }
  }

  .large-nav {
    display: none;
    font-size: 18px;

    @media (min-width: 50rem) {
      display: inline-block;
    }
  }

  .brand {
    margin: 0;
    padding: 0;
    font-weight: bold;
    font-size: 21px;
    line-height: 28px;
    color: var(--foreground-2);

    a {
      color: inherit;
    }

    @media (min-width: 480px) {
      font-size: 28px;
      line-height: 42px;
    }

    + .tagline {
      padding-top: 0;
      margin-bottom: 0;
      font-size: inherit;
      line-height: 1.33;
    }

    h1& {
      color: var(--foreground-1);

      @media (min-width: 480px) {
        font-size: 38px;
        line-height: 52px;
      }
    }
  }

  nav {
    line-height: 47px;
    @media (max-width: 479px) {
      line-height: 40px;
    }

    > *:not(:last-child) {
      margin-right: 1em;
    }

    .search-toggle {
      display: none;

      @media (max-width: 50rem) {
        display: inline;
      }
    }
  }
}



/* style/footer.css */
footer {
  display: flex;
  position: relative;
  margin: 0 auto 16px auto;
  padding: 2.5rem var(--side-padding);
  max-width: var(--max-content);
  color: var(--foreground-2);

  p {
    color: var(--foreground-3);
    padding: 0;
    margin: 0 1em;
  }
}



/* style/grid.css */
.grid,
.list {
  gap: 1rem;
  margin: 0;
  padding: 0;

  > * {
    display: flex;
    margin: 0;
    padding: 0;
    > * {
      flex: 1;
    }
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
}

.list {
  display: flex;
  flex-direction: column;
}

section:has(.list),
section[name="labels"] {
  max-width: var(--max-line);
  margin-left: auto;
  margin-right: auto;
}

.remarkable-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;

  > h2 {
    flex: 0 0 auto;
  }

}

.remarkable-pagination {
  display: flex;
  align-items: baseline;
  color: var(--foreground-3);
  font-size: 0.72rem;
}

.remarkable-page-button {
  padding: 3px 8px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  outline-color: transparent;
  transition: outline .1s ease-in-out;

  &:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }

  &:focus-visible {
    outline: 2px solid var(--orange-1);
  }

  &[aria-current="page"] {
    color: var(--foreground-1);
    font-weight: 700;
  }
}

.remarkable-list {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;

  > li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
    margin: 0;
    padding: 0.55rem 12px;
    background: var(--background-1);
    border-radius: 3px;
    outline: 2px solid transparent;
    transition: outline .1s ease-in-out, background .1s;
    white-space: nowrap;

    &:has(.remarkable-package-name:hover),
    &:has(.remarkable-package-name:focus-visible),
    &:has(.remarkable-label:focus-visible) {
      outline: 2px solid var(--orange-1);
    }
  }

  .remarkable-identity {
    display: flex;
    align-items: baseline;
    min-width: 0;
    overflow: hidden;
  }

  .remarkable-package-name {
    min-width: 0;
    overflow: hidden;
    color: var(--foreground-1);
    font-weight: 700;
    text-overflow: ellipsis;

    &:hover,
    &:focus-visible {
      flex-shrink: 0;
      color: var(--orange-1);
    }

    &:focus-visible {
      outline: none;
    }
  }

  .remarkable-separator,
  .remarkable-label {
    flex: 0 0 auto;
    color: var(--foreground-3);
    font-size: 0.72em;
    font-weight: 400;
  }

  .remarkable-separator {
    padding-inline: 0.45em;
  }

  .remarkable-label {
    overflow: hidden;
    text-overflow: ellipsis;

    &:hover,
    &:focus-visible {
      color: var(--orange-1);
    }

    &:focus-visible {
      outline: none;
    }
  }

  .remarkable-stars {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.35rem;
    color: var(--foreground-3);
    font-size: 11px;

    svg {
      width: 12px;
      height: 12px;
    }
  }

}

/*
  Remarkable has two logical pages over 40 ranked packages. The normal
  20-item page size gives five tidy rows at four columns. In the three-column
  width range, 20 would make an awkward partial seventh row, so each page uses
  15 items and page two starts at item 16.

  The breakpoints are the grid's column-count thresholds:
    columns * min-card-width + gaps-between-columns * column-gap

  With 16rem cards and a 1rem column gap:
    3 columns: 3 * 16rem + 2 * 1rem = 50rem
    4 columns: 4 * 16rem + 3 * 1rem = 67rem

  For a card width of 18rem, the matching range would be:
    3 columns: 3 * 18rem + 2 * 1rem = 56rem
    4 columns: 4 * 18rem + 3 * 1rem = 75rem
    @container (width >= 56rem) and (width < 75rem)
*/
section[name="remarkable"][data-remarkable-page="1"] .remarkable-list > li:nth-child(n + 21),
section[name="remarkable"][data-remarkable-page="2"] .remarkable-list > li:nth-child(-n + 20) {
  display: none;
}

@container (width >= 50rem) and (width < 67rem) {
  section[name="remarkable"][data-remarkable-page="1"] .remarkable-list > li:nth-child(n + 16),
  section[name="remarkable"][data-remarkable-page="2"] .remarkable-list > li:nth-child(-n + 15),
  section[name="remarkable"][data-remarkable-page="2"] .remarkable-list > li:nth-child(n + 31) {
    display: none;
  }

  section[name="remarkable"][data-remarkable-page="2"] .remarkable-list > li:nth-child(n + 16):nth-child(-n + 20) {
    display: flex;
  }
}

section[name="labels"] .grid {
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  grid-template-columns: repeat(3, 1fr);
  li a {
    flex: none;
  }
  @media (max-width: 800px) {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--background-1);
  color: var(--foreground-2);
  border-radius: 6px;
  padding: 1rem;
  position: relative;
  outline: 2px solid transparent;
  transition: outline .1s ease-in-out, background .1s;
  overflow: hidden;

  &:has(h3 a:hover),
  &:has(:focus-visible) {
    outline: 2px solid var(--orange-1);
  }

  h3 {
    color: var(--foreground-3);
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 2px;
    overflow-wrap: anywhere;
  }

  h3 a,
  a[href*="q=author"] {
    color: var(--foreground-1);
    &:hover {
      color: var(--orange-1);
    }
  }

  .authors {
    padding-top: 0;
  }

  > p:last-child {
    margin-bottom: 0;
  }

  .stats {
    padding: 0;
    margin: 0;
    line-height: 18px;
    font-size: 11px;
    color: var(--foreground-3);
    svg {
      width: 12px;
      height: 12px;
      vertical-align: center;
    }
  }

  .labels {
    font-size: 13px;
    padding: 0;
    margin: 0;
    a {
      line-height: 20px;
      padding: 1px 6px;
    }
  }

  .button {
    background: var(--background-2);
    &:hover {
      background: var(--background-3);
    }
  }
}

.card-compact {
  .grid & {
    /* stretch cards vertically across the grid cells */
    display: flex;
    flex-direction: column;
  }

  .card-heading {
    flex: 1; /* push other content to the end of the card */
    padding-right: 3.2em;
  }
  &:has(.stats .warning) .card-heading {
    padding-right: 4.8em;
  }
  .authors {
    margin-bottom: 16px;
  }

  .stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: absolute;
    top: 18px;
    right: 1rem;
    gap: 0;
  }

  .card-footer {
    display: grid;
    font-size: 13px;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: end;
    column-gap: 7px;

    &.card-footer-enumeration {
      grid-template-columns: 1fr;
      row-gap: 10px;
    }
  }

  .card-footer:not(:has(.platform-statement)),
  .card-footer:not(:has(.labels)) {
    display: flex;
    justify-content: flex-end;
  }

  .platform-statement {
    line-height: 22px;
  }

  .labels {
    justify-content: flex-end;
  }
}

.card-result {
  .card-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, min(38vw, 18rem));
    column-gap: 0.6rem;
  }

  .card-meta {
    justify-self: end;
    width: 100%;
    font-size: 11px;
  }

  .stats {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    column-gap: 1em;
  }

  .platforms {
    line-height: 1.25;
    margin-top: 4px;
    text-align: right;
  }

  .library-meta {
    align-self: start;
    text-align: right;
  }

  .library-version {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    margin-bottom: 5px;
    background: var(--background-2);
    color: var(--foreground-2);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 20px;
  }

  .authors {
    margin-bottom: 14px;
  }

  .library-platforms {
    color: var(--foreground-2);
    font-size: 11px;
    line-height: 1.35;
    margin-top: 18px;
    margin-bottom: 0;
  }

  .labels {
    justify-content: flex-start;
    margin-top: 21px;  /* usually collapses with margin-bottom from .description */
  }
}

.card-result .description {
  font-size: 1rem;
  max-width: calc(var(--max-line) * 5/6);
  padding: 0;
  margin: 0;
}



/* style/package.css */
html.page-package {
  overflow-y: scroll;
}

.package-title {
  padding-top: 12px;
  margin-bottom: 16px;
  display: inline-table;

  h1 {
    display: inline;
    margin-right: 0.3rem;
    padding-top: 0;
    margin-bottom: 0;

    &::after {
      content: "\00A0"; /* non-breaking space after heading text */
    }
  }
  .clipboard-button {
    display: inline-flex;
    font-size: 14px;
    position: relative;
    top: -12px;  /* vertical-align: super; isn't sufficient :-( */
  }
}

.description {
  font-size: 21px;
  line-height: 28px;
  padding-top: 8px;
  margin-bottom: 20px;
  font-style: italic;

  &::before {
    content: "“";
  }
  &::after {
    content: "”";
  }

  &:empty {
    display: none;
  }
}

.download {
  color: var(--foreground-2);
  margin-left: 2px;

  &:hover {
    color: var(--orange-2);
  }
}

.download-notes-sep {
  vertical-align: 0px;
  margin: 0 1px 0 1px;
  color: var(--foreground-3);
}

.release {
  font-weight: bold;
}

.requirement {
  color: var(--foreground-2);
  margin: 0 1px 0 0px;
  vertical-align: 0px;
  font-size: 14px;
}

ul.stats {
  list-style: none;
  display: flex;
  gap: 1em;
  align-content: center;
  align-items: baseline;
  line-height: 28px;
  padding-left: 0;
  color: var(--foreground-2);

  > * {
    display: flex;
    margin: 0;
  }

  svg {
    margin-right: 1ex;
    vertical-align: center;
  }

  a {
    color: inherit;
  }
}

section[name="package"] > ul.stats .platforms {
  max-width: 60%;
}

.package-labels {
  @media (width < 80rem) {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem 2.5rem;
    flex-wrap: wrap;
    margin-bottom: 25px;

    > .button-group.labels {
      margin-bottom: 0;
    }

    > .label-normalization-note {
      flex: 1 1 20rem;
      margin-top: 3px;
    }
  }
}

.label-normalization-note {
  color: var(--foreground-2);
  font-size: 14px;
  line-height: 22px;
  margin-top: -12px;

  p,
  ul {
    font-size: inherit;
    line-height: inherit;
    padding-top: 0;
  }

  p {
    margin-bottom: 0;
  }

  ul {
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
    margin-left: 2px;
  }

  code {
    background: color(srgb 0.75 0.75 0.76 / 0.3);
    white-space: nowrap;

    :root[data-theme='dark'] & {
      background: color(srgb 0.33 0.33 0.39 / 0.3);
    }
  }
}

.other-releases {

  summary {
    margin-bottom: 0px;
    padding: 0;
    outline-offset: 8px;
    margin-top: 28px;
    color: var(--foreground-1);
    outline-color: var(--orange-1);
    width: fit-content;
  }
  &:open summary {
    width: revert;
  }

  ul {
    list-style: none;
    display: flex;
    gap: 1.4rem;
    overflow-x: auto;
    margin: 0;
    padding-left: 0;
    padding-top: 0;


  li {
      margin: 0px 0 16px 0;
      min-width: max-content;
      padding: 0px 8px 2px;
      border-radius: 3px;
      margin-left: -6px;
      margin-right: 6px;

      .requirement {
        display: block;
      }
    }
  }
}

.labels {
  a,
  span {
    box-sizing: border-box;
    padding: 2px 6px;
    border: 1px solid transparent;
    &.state {
      background: inherit;
      border-color: var(--orange-2);
      color: var(--orange-2);
      &:hover {
        background: rgb(from var(--orange-1) r g b / 0.12);
      }
    }
    &.state-bad {
      border-color: var(--red-2);
      color: var(--red-2);
      &:hover {
        background: rgb(from var(--red-1) r g b / 0.12);
      }
    }
    &.state-failing {
      border-color: var(--state-failing-border-color);
      color: var(--state-failing-text-color);
      &:hover {
        background: rgb(from var(--state-failing-text-color) r g b / 0.12);
      }
    }
    &.platform-macos,
    &.platform-macos-x64 {
      background: var(--blue-1);
      color: var(--white);
      &:hover {
        background: var(--blue-2);
      }
      &.is-active {
        background: var(--blue-2);
        &:hover {
          background: var(--blue-1);
        }
        :root[data-theme='dark'] & {
          background: var(--blue-1);
          &:hover {
            background: var(--blue-2);
          }
        }
      }
    }
    &.platform-windows,
    &.platform-windows-x32,
    &.platform-windows-x64 {
      background: var(--orange-1);
      color: var(--white);
      &:hover {
        background: var(--orange-2);
      }
      &.is-active {
        background: var(--orange-2);
        &:hover {
          background: var(--orange-1);
        }
        :root[data-theme='dark'] & {
          background: var(--orange-1);
          &:hover {
            background: var(--orange-2);
          }
        }
      }
    }
    &.platform-linux,
    &.platform-linux-x32,
    &.platform-linux-x64,
    &.platform-linux-arm64 {
      background: var(--green-1);
      color: var(--white);
      &:hover {
        background: var(--green-2);
      }
      &.is-active {
        background: var(--green-2);
        &:hover {
          background: var(--green-1);
        }
        :root[data-theme='dark'] & {
          background: var(--green-1);
          &:hover {
            background: var(--green-2);
          }
        }
      }
    }
  }

  a svg {
    width: 16px;
    height: 16px;
  }
}

.warning-message {
  padding: 1.6em;
  border-radius: 6px;
  background: var(--warning-message-background);
  border: 1px solid var(--warning-message-border);
  margin: 18px auto 8px auto;
  text-align: center;
  max-width: 32rem;
  overflow-wrap: anywhere;
  svg {
    color: var(--red-1);
    width: 24px;
    height: 24px;
  }
  h2 {
    font-size: 16px;
    line-height: 16px;
    text-align: left;
  }
  p {
    text-align: left;
    font-family: monospace;
    white-space: pre-wrap;
    margin: 0;
  }
}



/* style/pagination.css */
.pagination {
  text-align: center;
  margin: 3.2rem 0 1.6rem 0;
  color: var(--foreground-2);
}

.pagination-controls {
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.6rem;

  .button {
    background: var(--background-3);
    &:hover:not(:disabled) {
      background: var(--background-4);
    }

    /* disabled because it's the current page */
    &:disabled {
      background: var(--orange-1);
      color: var(--white);
      border-color: var(--orange-1);
      opacity: 1;
    }
  }
}

.pagination-ellipsis {
  padding: 0 1ex;
}


/* horizontal pager << < > >> , with date/month indicator */

.pager-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pager-pagination {
  display: flex;
  align-items: center;
  align-self: end;
  gap: 1rem;
  position: relative;
  top: -15px;

  .button-group {
    display: flex;
    gap: 0.2ex;
    font-size: 24px;
    margin: 0;
    padding: 0;
  }

  .button {
    background: transparent;

    &:enabled:hover,
    &:enabled:focus-visible {
      background: var(--background-4);
    }

    .pager-nav-symbol {
      display: inline-block;
      position: relative;
      top: -2px;
    }
  }

  .date-indicator {
    margin-left: 0.5rem;
    color: var(--foreground-3);
    font-size: 14px;
  }
}



/* style/sticky-section-header.css */
.sticky-section-header {
  > h2 {
    padding-top: 0;
  }

  &.is-sticky {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--background-2);
    margin-left: calc(var(--side-padding) * -1);
    margin-right: calc(var(--side-padding) * -1);
    padding-left: var(--side-padding);
    padding-right: var(--side-padding);
    margin-bottom: 2px;  /* room for the 2px card outline */
    transition: background .1s;

    > h2 {
      padding-top: 5px;
      margin-bottom: 9px;
    }

    &.shadow {
      box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
    }
  }
}

.pager-header.is-sticky {
  & .pager-pagination {
    top: -11px;
  }
}



/* style/search.css */
@keyframes grow {
  0%   {
    opacity: 0;
    width: 0;
    margin-left: 0;
    margin-right: 0;
  }
  100% {
    opacity: 1;
    width: 10rem;
    margin: 4px;
  }
}

@keyframes shrink {
  0% {
    opacity: 1;
    width: 10rem;
    margin: 4px;
  }
  100% {
    opacity: 0;
    width: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
  }
}

@keyframes fade {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

form[name='search'] {
  margin-left: auto;
  margin-right: auto;
  max-width: calc(var(--max-content) * 2/3);

  &:has(.button-group.labels) .search-controls {
    margin-bottom: 4px;
  }

  .button-group.labels {
    padding-top: 0;

    a.button:not(:hover):not(:focus-visible):not(.is-active) {
      background: transparent;
    }
  }

  .search-shortcuts {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 1.5em;
    margin-bottom: 37px;

    .button-group {
      padding-top: 0;
      margin-bottom: 0;
    }

    .button-group.labels {
      flex: 1 1 auto;
      min-width: 0;

      .button.label {
        font-weight: normal;
        color: var(--foreground-2);
      }
    }

    .search-shortcuts-links {
      margin-left: auto;
      align-self: flex-start;
      flex: 0 0 auto;

      a.button:not(:hover):not(:focus-visible):not(.is-active) {
        background: transparent;
        @media (width < 732px) {
            background: var(--background-3);
        }
      }
    }
  }
}

section[name="labels"] a.button.label svg.label-icon {
  width: 16px;
  height: 16px;
  margin-right: -3px;
  position: relative;
  top: 3px;
}

input {
  background: var(--background-1);
  color: var(--foreground-1);
  border: 1px solid var(--background-3);
  border-radius: 3px;
  padding: 8px;
  margin-bottom: 14px;
  font-size: 1rem;
  line-height: 24px;
  transition: background .1s;
}

select {
  appearance: none;
  all: unset;
  background: var(--background-1);
  color: var(--foreground-1);
  border: 1px solid var(--background-3);
  border-radius: 3px;
  padding: 7px;
  font-size: 1rem;
  line-height: 24px;
  cursor: pointer;
  transition: background .1s, color .1s;

  :root[data-theme='light'] & {
    option, optgroup {
      background: var(--background-1);
      color: var(--foreground-1);
    }
  }
  :root[data-theme='dark'] & {
    option, optgroup {
      background: var(--background-2);
      color: var(--foreground-2);
    }
  }
}

.search-controls {
  display: flex;
  align-items: center;
  margin-bottom: 13px;
  background: var(--background-1);
  border-radius: 3px;
  border: 1px solid var(--background-3);
  outline-color: transparent;
  transition: border .1s ease-in-out, outline .1s ease-in-out, background .1s;
  overflow: hidden;

  * {
    box-sizing: border-box;
  }

  --animation-timing: .1s ease-in-out;

  &:has(input:focus),
  &:has(.clear-btn:focus) {
    outline: 2px solid var(--orange-1);
    outline-offset: -1px;
  }

  label {
    color: var(--foreground-3);
  }

  .input-with-clearance {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
  }

  input {
    flex: 1;
    margin-bottom: 0;
    border: none;
    line-height: 28px;

    &:focus {
      outline: none;
    }
  }

  select {
    padding: 0;
    background: transparent;
    border: none;
  }

  input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
  }

  .clear-btn {
    cursor: pointer;
    border: none;
    color: var(--foreground-2);
    background: inherit;
    display: none;
    padding: 7px 7px 4px;
    margin-right: 2px;
    border-radius: 50%;

    :root[data-theme='light'] & {
      color: hsl(240 5% 56.6%);
      &:hover {
        color: hsl(240 3% 45.5%);
      }
    }
    :root[data-theme='dark'] & {
      color: hsl(0 5.52% 81.31%);
      &:hover {
        color: hsl(0 0% 87%);
      }
    }

    &:focus {
      background: var(--background-2);
      outline: 2px solid var(--orange-1);
      outline-offset: -5px;
    }
  }

  .input-with-clearance:has(input:not(:placeholder-shown)) .clear-btn {
    display: block;
    visibility: hidden;
  }

  .input-with-clearance:has(input:not(:placeholder-shown)):is(:hover, :focus-within) .clear-btn {
    visibility: visible;
  }

  .button {
    align-self: center;
    margin: 6px;
    padding: 0;
    gap: 0;
    outline-color: transparent;

    label,
    select {
      padding: 3px 8px;
    }

    &:has(select:focus) {
      outline: 2px solid var(--orange-1);
    }

    @media (max-width: 600px) {
      flex-direction: column;
      align-items: flex-start;

      label {
        font-size: 0.8em;
        line-height: 1;
        width: 100%;
        padding-bottom: 0;
      }
      select {
        padding-top: 0;
      }
    }
  }

  .sort-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.75rem 0 1.2rem;
    border-left: 1px solid var(--background-4);
    margin-left: 0.5rem;

    button {
      background: none;
      border: none;
      color: var(--foreground-3);
      font: inherit;
      padding: 0;
      cursor: pointer;
      transition: color .1s ease-in-out;

      &:hover {
        color: var(--foreground-2);
        text-decoration: none;
      }

      &:focus-visible {
        outline: 2px solid var(--orange-1);
        outline-offset: 2px;
      }

      &.is-active {
        color: var(--foreground-1);
        font-weight: 600;
      }
    }

    .sort-toggle-separator {
      color: var(--foreground-4);
      font-size: 0.9em;
    }
  }

  @media (max-width: 600px) {
    flex-wrap: wrap;

    input {
      width: 33vw;
    }
    .sort-toggle {
      gap: 0.5rem;
      font-size: 14px;
      padding: 0 0.5rem;
    }
  }
}


/* Compact header search: hide Sort By until focus, with animation */
form.compact {
  margin: 0;

  .search-controls {
    margin-bottom: 0;

    input {
      line-height: 1;
      width: 9em;
      transition: width var(--animation-timing);
    }

    .button {
      display: none;
      animation: var(--animation-timing) forwards grow;
      font-size: 13px;
      margin: 4px;

      label {
        padding-right: 0;
      }
    }
  }

  &[data-expanded="true"] {
    .search-controls {
      input {
        width: 12em;
      }

      .button {
        display: flex;
      }
    }
  }

  &.going-away .button {
    display: flex;
    animation: var(--animation-timing) forwards shrink;
  }

  padding: 0 var(--side-padding) 0 0;

  @media (max-width: 50rem) {
    display: none;

    &[data-expanded="true"],
    &.going-away {
      display: flex;
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      padding: 8px var(--side-padding);
      background: var(--background-2);
      align-items: center;

      > * {
        flex: 1;
      }
    }

    &.going-away {
      animation: var(--animation-timing) forwards fade;
    }
  }
}

.timeline-break {
  margin: 0.6rem 0;
  font-weight: 600;
  color: var(--foreground-3);
  padding: 8px 2px;
}

.search-subcontrols {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  margin-bottom: -2px;
  margin-right: 2px;
  font-size: 0.85em;
  color: var(--foreground-3);

  .usage-toggle {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    cursor: pointer;
    transition: color .1s ease-in-out;
    text-decoration: line-through;
    font-size: small;

    &:hover {
      color: var(--foreground-2);
    }

    &:focus-visible {
      outline: 2px solid var(--orange-1);
      outline-offset: 2px;
    }

    &[aria-pressed="true"] {
      color: var(--foreground-1);
      text-decoration: none;
    }
  }
}



/* style/chart.css */
.chart-container {
  /* Chart color tokens (light theme defaults from latest commit) */
  --install-bar-color: var(--orange-1);
  --install-bar-hover-color: var(--orange-2);
  --upgrade-line-color: hsl(212deg, 88%, 62%);
  --upgrade-point-stroke-color: hsl(0deg 0% 82.07%);
  --upgrade-point-fill-color: var(--blue-3);
  --release-point-fill-color: var(--red-1);
  --release-point-stroke-color: hsl(7deg 91.82% 41.44%);
  --release-point-stroke-alt-color: hsl(0deg 100% 82.7%);
  --avg-line-color: var(--orange-3);
  --install-legend-color: var(--orange-1);

  --spacing: calc(1.75 * var(--side-padding));
  max-width: calc(var(--max-content) * 2/3 - var(--spacing));
  margin: 14px 0 42px 0;

  @media (width >= 80rem) {
    margin: 0 0 0 var(--spacing);
    padding: 24px 0 22px var(--spacing);
    border-left: 1px solid var(--background-4);
    width: 100%;
    float: right;
  }

  &.chart-container-rip {
    filter: grayscale(1);
    @media (width >= 80rem) {
      margin: 2em 0 0;
      padding: 24px 0 22px;
      border-left: 0;
      float: none;
    }
  }
}

/* Dark theme overrides (values from the darker chart changes) */
:root[data-theme='dark'] .chart-container {
  --install-bar-color: hsl(33deg 85.87% 34.85%);
  --install-bar-hover-color: var(--orange-2);
  --upgrade-line-color: hsl(212deg 67.07% 47.48%);
  --upgrade-point-stroke-color: hsl(201 97% 50% / 1);
  --upgrade-point-fill-color: hsl(216.94deg 100% 70.72%);
  --release-point-fill-color: var(--red-1);
  --release-point-stroke-color: hsl(7deg 91.82% 41.44%);
  --avg-line-color: var(--orange-3);
  --install-legend-color: hsl(33.16deg 89.05% 37.35%);
}

section:has(.chart-container)::after {
  /* https://css-tricks.com/snippets/css/clear-fix/ */
  content: "";
  display: table;
  clear: both;
}

.install-chart {
  svg {
    width: 100%;
    height: auto;
    display: block;
  }

  .axis {
    stroke: var(--foreground-4);
    stroke-linecap: round;
    stroke-width: 1;
  }
  .tick {
    fill: var(--foreground-2);
    font-size: 12px;
  }
  .grid {
    stroke: var(--background-3);
    stroke-linecap: round;
    stroke-width: 1;
    pointer-events: none;
    transition: stroke .1s;
  }

  /* x axis labels */
  .x-month-tick {
    stroke: var(--background-4);
    stroke-linecap: round;
    stroke-width: 1;
    transition: stroke .1s;
  }
  .x-month-label {
    fill: var(--foreground-2);
    font-size: 12px;
    pointer-events: none;
  }
  .x-month-label-dimmed {
    fill: var(--foreground-4);
  }

  /* spacer between the bars */
  .week-slice-bg {
    fill: transparent;
    transition: fill .1s;
  }
  /* bars behind the weeks */
  .week-slice-hit {
    fill: var(--background-2);
    opacity: 0;
  }

  /* weekly installs bars  */
  .bar {
    fill: var(--install-bar-color);
    transition: fill .2s ease-in-out;
  }
  .bar-remove {
    opacity: .6;
  }
  .week:hover .bar,
  .bar:hover {
    fill: var(--install-bar-hover-color);
  }

  /* upgrades lines */
  .release-point-hit {
    fill: transparent;
    stroke: none;
    pointer-events: all;
  }
  .upgrades-line {
    stroke: var(--upgrade-line-color);
    stroke-width: 1.8px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 1;
    pointer-events: none;
    transition: stroke-width .2s ease-in-out;
  }
  .upgrades-line-dashed {
    stroke-dasharray: 1 4;
  }
  .upgrades-point {
    stroke: var(--upgrade-point-stroke-color);
    stroke-width: 0.6px;
    fill: var(--upgrade-point-fill-color);
    pointer-events: none; /* tooltip is on the hit circle */
  }
  /*
    Interaction-heavy release callout selectors live in the chart renderer's
    dynamic <style> block in eleventy.install-chart.mjs.
    Only baseline visual styles are in this shared stylesheet.
  */
  .release-point {
    fill: var(--release-point-fill-color);
    stroke: var(--release-point-stroke-color);
    stroke-width: 1;
    pointer-events: none; /* tooltip is on the hit circle */
  }
  .release-week:not(.is-default) .release-point {
    stroke-width: 0.3px;
    stroke: var(--release-point-stroke-alt-color);
  }
  .release-point-in-the-void {
    opacity: 0.5;
    stroke: var(--orange-3);
    stroke-width: 0px;
    :root[data-theme='dark'] {
      fill: var(--orange-2);
    }
  }
  .release-callout {
    stroke: var(--foreground-3);
    stroke-width: 1;
  }
  .release-label {
    fill: var(--foreground-3);
    font-size: 10px;
  }
  /* averages */
  .avg-line {
    stroke: var(--avg-line-color);
    opacity: 0.6;
    stroke-width: 1;
    stroke-dasharray: 2 1;
    pointer-events: none;
  }
  .avg-line-net {
    opacity: 1;
  }
}

.legend {
  font-size: 14px;
  line-height: 28px;
  margin-top: 21px;
  color: var(--foreground-2);

  .color {
    display: inline-block;
    background: var(--install-legend-color);
    width: 10px;
    height: 10px;
    margin-right: 1ex;
  }
  .color-gross {
    opacity: .6;
  }
  .color-upgrade {
    background: var(--upgrade-line-color);
    border-radius: 100%;
  }
}

.chart-container:has(.color-install:hover) .install-chart,
.chart-container:has(.color-removal:hover) .install-chart {
  .bar {
    fill: var(--install-bar-hover-color);
  }
}
.chart-container:has(.color-upgrade:hover) .install-chart {
  .upgrades-line {
    stroke-width: 2;
  }
}



/* style/theme-toggle.css */
#theme-toggle {
  appearance: none;
  all: unset;
  background: var(--background-1);
  background: transparent;
  border: 2px solid var(--background-1);
  border: none;
  border-radius: 1.6rem;
  cursor: pointer;
  margin: 0 auto;
  padding: 2px 0;
  vertical-align: -1px;
  transition: outline .1s ease-in-out;
  outline: 2px dotted transparent;

  &:focus {
    outline: 2px solid var(--orange-1);
  }

  .icon {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 20px;
    height: 20px;
    border-radius: 100%;
    background: var(--foreground-3);
    color: var(--background-1);
    transition: box-shadow .3s, color 0.1s, background .3s;
    padding: 1px;
    margin: 0 2px;

    &.dark svg {
      margin-top: -2px;
    }
  }

  .dark {
    display: none;
  }

  --sun-grad-start: rgba(245, 245, 245, 0.51);
  --sun-grad-end: rgba(255, 205, 0, 0.05);
  --moon-grad-start: rgba(162, 162, 162, 1);
  --moon-grad-end: rgba(162, 162, 162, 1);

  :root[data-theme='light'] & {
    &:focus {
      .light {
        outline: 1px solid rgba(255, 190, 16, 0);
        box-shadow: inset 1px 1px 10px -1px #ffe73500, 0 0 0 rgba(253, 225, 0, 0);
        background: radial-gradient(circle, #f5f5f5 70%, #ffd463 100%);
        background-position: 2px 60px;
        background-size: 80px;
      }
    }
    .light {
      color: hsl(42.76deg 100% 50.31%);
      box-shadow: inset 1px 1px 10px -10px #ffe735, 0 0 29px -7px rgb(29 29 25);
      background: linear-gradient(45deg, var(--sun-grad-start), var(--sun-grad-end));
      animation: sun-glow 3600s linear forwards, sun 3600s cubic-bezier(0, 0, 0.56, 1.08) forwards;
      animation-play-state: paused;

      &:hover {
        box-shadow: inset 1px 1px 10px -4px #ffe735, 0 0 29px -7px rgb(29 29 25);
      }
    }

  }
  :root[data-theme='dark'] & {
    &:focus {
      outline: 2px dotted hsl(45.83deg 94% 55%);

      .dark {
        background: linear-gradient(314deg, #4e3d11, transparent);
        color: hsl(38.27deg 100% 69.14%);
      }
    }

    .dark {
      background: linear-gradient(45deg, var(--moon-grad-start), var(--moon-grad-end));
      animation: moon-glow 3600s linear forwards, moon 2600s cubic-bezier(0, 0, 0.24, 0.7) forwards;
      animation-play-state: paused;

      &:hover {
      }
    }

    .dark {
      display: flex;
    }
    .light {
      display: none;
    }
  }
}

@property --sun-grad-start {
  syntax: '<color>';
  initial-value: rgba(245, 245, 245, 0.51);
  inherits: false;
}

@property --sun-grad-end {
  syntax: '<color>';
  initial-value: rgba(255, 205, 0, 0.05);
  inherits: false;
}

@property --moon-grad-start {
  syntax: '<color>';
  initial-value: rgba(162, 162, 162, 1);
  inherits: false;
}

@property --moon-grad-end {
  syntax: '<color>';
  initial-value: rgba(162, 162, 162, 1);
  inherits: false;
}

@keyframes sun {
  50% {
    color: hsl(42.76deg 92.62% 80.61%);
  }
  to {
    color: hsl(38.27deg 100% 77.17%);
  }
}

@keyframes sun-glow {
  to {
    box-shadow: inset 1px 1px 10px -1px hsl(52.08deg 100% 52.21%), 0px 0px 32px #fde100;
    outline: 1px solid rgba(255, 190, 16, 0);
    --sun-grad-start: rgba(255, 217, 136, 1);
    --sun-grad-end: rgba(244, 210, 23, 0.9);
  }
}

@keyframes moon {
  to {
    color: hsl(38.27deg 100% 76.57%);
  }
}

@keyframes moon-glow {
  to {
    box-shadow:
      inset 1px 1px 10px -1px hsl(52.08deg 100% 52.21%),
      0 0 12px #fde100;

    --moon-grad-start: rgba(255, 217, 136, 1);
    --moon-grad-end: rgba(244, 210, 23, 0.9);
  }
}



/* style/label-icons.css */
:root {
  --label-icon-color-red: var(--red-2);
  --label-icon-color-orange: var(--orange-2);
  --label-icon-color-yellow: var(--orange-2);
  --label-icon-color-green: var(--green-2);
  --label-icon-color-cyan: var(--blue-2);
  --label-icon-color-blue: var(--blue-2);
  --label-icon-color-purple: var(--purple-1);
  --label-icon-color-pink: var(--pink-1);
  --label-icon-color-sky: var(--blue-2);
  --label-icon-color-graphite: var(--graphite-1);
}

.label-icon {
  fill: currentColor;
}

.label-icon--orange {
  color: var(--label-icon-color-orange);
}
.label-icon--red {
  color: var(--label-icon-color-red);
}
.label-icon--cyan {
  color: var(--label-icon-color-cyan);
}
.label-icon--graphite {
  color: var(--label-icon-color-graphite);
}
.label-icon--sky {
  color: var(--label-icon-color-sky);
}
.label-icon--green {
  color: var(--label-icon-color-green);
}
.label-icon--yellow {
  color: var(--label-icon-color-yellow);
}
.label-icon--purple {
  color: var(--label-icon-color-purple);
}
.label-icon--blue {
  color: var(--label-icon-color-blue);
}
.label-icon--pink {
  color: var(--label-icon-color-pink);
}



/* style/status.css */
html.page-status {
  scrollbar-gutter: stable;
}

html.page-status main {
  margin-top: calc(var(--grid-line) * 1.5);
  min-height: 66vh;
}

.status-page {
  --status-change-marker-color: hsl(124.46deg 56.45% 41.65%);
  --status-removed-failing-color: hsl(7deg 84% 53% / 88%);

  :root[data-theme='dark'] & {
    --status-change-marker-color: hsl(120deg 50.9% 49.19%);
    --status-removed-failing-color: hsl(7deg 92% 68% / 94%);
  }

  margin-top: var(--grid-line);
  max-width: var(--max-line);
  margin-left: auto;
  margin-right: auto;
}

.status-chart-shell {
  --status-update-mode-color: hsl(103.73deg 65% 42%);

  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto calc(var(--grid-line) * 1.5) auto;

  :root[data-theme='dark'] & {
    --status-update-mode-color: var(--green-2);
  }
}

.status-chart-toolbar {
  display: flex;
  justify-content: flex-end;
  max-width: var(--max-line);
  margin: -1rem auto 1rem auto;

  @media (width >= 52rem) {
    margin-top: -2rem;
  }
}

.status-chart-mode-button {
  all: unset;
  padding: 1px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--foreground-3);
  cursor: pointer;
  font-size: 13px;
  line-height: 18px;
  transition: color .12s ease, background-color .12s ease;

  &:hover,
  &:focus-visible,
  &[aria-pressed='true'] {
    color: var(--status-update-mode-color);
  }

  &[aria-pressed='true'] {
    border-color: hsl(138.66deg 57.49% 40.59%);
    border-style: solid;
    border-width: 1px;

    :root[data-theme='dark'] & {
      border-color: hsl(93.66deg 57.49% 40.59%);
    }
  }

  &:focus-visible {
    outline: 2px solid var(--orange-1);
    outline-offset: 3px;
  }
}

.status-chart {
  --status-dot: hsl(222.25deg 15.62% 63.35%);
  --status-dot-active-fill: hsl(273.7deg 12.38% 32.69%);
  --status-dot-active-stroke: hsl(282.55deg 11.03% 41.72%);
  --status-tag-line: hsl(222.25deg 3.29% 81.37%);
  --status-tag-line-stroke: 1;
  --status-tag-label: hsl(201.48deg 9.8% 67.95%);
  /* Top version labels and their long callout lines. */
  --status-tag-runout: 9; /* preferred horizontal elbow length */
  --status-tag-min-runout: 3; /* narrow-width lower bound */
  --status-tag-top-y: 10;
  --status-tag-lean-deg: 0.6;
  --status-tag-label-offset-x: 0;
  --status-tag-label-offset-y: 3;
  --status-tag-label-min-gap-x: 2; /* overlap threshold between adjacent labels */
  --status-tag-label-fallback-char-width: 6; /* before SVG text metrics are available */
  --status-tag-hover-hide-day-radius: 1;

  /* Inline fallback for top labels that would collide on narrow viewports. */
  --status-tag-inline-cluster-hours: 1; /* merge nearby omitted labels */
  --status-tag-inline-near-top-hours: 1; /* draw downward when too close to 00:00 */
  --status-tag-inline-runout: 6; /* short horizontal elbow from dot edge */
  --status-tag-inline-rise: 6; /* short vertical elbow */
  --status-tag-inline-text-offset-x: -3; /* text starts slightly before vertical elbow */
  --status-tag-inline-text-offset-y: -3;
  --status-tag-inline-down-text-shift-x: 1; /* optical tweak for downward labels */
  --status-tag-inline-down-text-shift-y: -3;
  --status-tag-inline-padding-x: 2;
  --status-tag-inline-padding-y: 1;
  --status-tag-inline-radius: 3;
  --status-tag-inline-font-size: 9px;

  /* Left-edge marker for tag history continuing outside the visible window. */
  --status-tag-overflow-shaft: 30;
  --status-tag-overflow-center-offset: 3;
  --status-tag-overflow-shift-x: -3;
  --status-tag-overflow-arrow-length: 4;
  --status-tag-overflow-arrow-half-width: 3;
  --status-tag-overflow-label-gap: 6;

  --status-change-dot: hsl(32deg 100% 66.22%);
  --status-error-dot: hsl(7deg 90.45% 50.1%);
  --status-error-dot-soft: hsl(7deg 100% 64.46% / 91%);
  --status-glitch-dot: hsl(35.76deg 93.03% 61.99%);
  --status-glitch-link: hsl(38.27deg 82.93% 41.7% / 27%);
  --status-update-dot: var(--status-update-mode-color);
  --status-update-marker: hsl(103.73deg 65% 42% / 38%);
  --status-update-connector: hsl(103.73deg 68.44% 40% / 15%);
  --status-update-connector-active: hsl(116.32deg 68.44% 40% / 52%);

  :root[data-theme='dark'] & {
    --status-dot: hsl(245deg 34.8% 64.47%);
    --status-dot-active-fill: hsl(273.7deg 48.28% 87.52%);
    --status-dot-active-stroke: hsl(282.55deg 60.41% 75.84%);
    --status-tag-line: hsl(253.72deg 6.87% 33.27%);
    --status-tag-line-stroke: 0.8;
    --status-tag-label: hsl(202.85deg 4.72% 45.55%);

    --status-change-dot: hsl(35.76deg 70.24% 54.56%);
    --status-glitch-dot: var(--status-change-dot);
    --status-glitch-link: hsl(253.48deg 32.4% 48.82% / 69%);
    --status-error-dot: var(--red-2);
    --status-error-dot-soft: hsl(0.51deg 85.44% 66.12% / 90%);
    --status-update-marker: hsl(80deg 70% 49% / 42%);
    --status-update-connector: hsl(80deg 70.13% 49.15% / 5%);
    --status-update-connector-active: hsl(98.69deg 70.13% 49.15% / 45%);
  }

  &:hover {
    --status-tag-line: hsl(140.43deg 38.59% 66.91%);
    --status-tag-line-stroke: 0.5;
    --status-tag-label: hsl(138.54deg 67.98% 42.65%);
    --status-glitch-dot: hsl(30.72deg 88.92% 56.7%);
    --status-glitch-link: hsl(35.76deg 78.85% 63.24% / 89%);
    --status-update-connector: hsl(40.79deg 77.83% 37.28% / 31%);

    :root[data-theme='dark'] & {
      --status-tag-line: hsl(130.99deg 34.37% 41.5%);
      --status-tag-line-stroke: 0.5;
      --status-tag-label: hsl(139.17deg 31.52% 46.09%);
      --status-glitch-dot: hsl(30.72deg 77.22% 49.28%);
      --status-glitch-link: hsl(48.34deg 85.59% 30.67% / 82%);
      --status-update-connector: hsl(50.86deg 70.13% 49.15% / 24%);
    }
  }

  &.is-updates-mode {
    --status-dot: hsl(222.25deg 15.62% 63.35% / 50%);
    --status-glitch-link: hsl(38deg 22% 65% / 27%);

    :root[data-theme='dark'] & {
      --status-dot: hsl(245deg 34.8% 64.47% / 50%);
      --status-glitch-link: hsl(253.48deg 24.79% 34.99% / 69%);
    }
  }

  position: relative;
  width: 100%;
  height: 380px;
  margin: 0 auto;
  max-width: 100%;

  svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
  }
}

.status-chart svg {
  .grid {
    stroke: var(--background-3);
    stroke-linecap: round;
    stroke-width: 1;
    pointer-events: none;
    transition: stroke .12s ease;
    shape-rendering: crispEdges;

    line[data-axis="true"] {
      stroke: var(--foreground-1);
      stroke-width: 0.6px;
    }
  }

  .tag-line {
    fill: none;
    stroke: var(--status-tag-line);
    stroke-width: var(--status-tag-line-stroke);
    stroke-linecap: round;
    pointer-events: none;
  }

  .tag-label {
    fill: var(--status-tag-label);
    font-size: 9px;
    text-anchor: middle;
    pointer-events: auto;
    cursor: default;
    transition: opacity .1s ease;
  }

  .tag-label-neighbor-hidden {
    opacity: 0;
  }

  .tag-inline-callout {
    pointer-events: auto;
  }

  .tag-inline-line {
    fill: none;
    stroke: var(--status-tag-line);
    stroke-width: var(--status-tag-line-stroke);
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
  }

  .tag-inline-label-bg {
    fill: var(--background-2);
    stroke: none;
  }

  .tag-inline-label {
    fill: var(--status-tag-label);
    font-size: var(--status-tag-inline-font-size);
    pointer-events: auto;
    cursor: default;
  }

  .tag-overflow-line {
    stroke: var(--status-tag-line);
    stroke-width: var(--status-tag-line-stroke);
    stroke-linecap: round;
    pointer-events: none;
  }

  .tag-overflow-arrow {
    fill: var(--status-tag-line);
    pointer-events: none;
  }

  .tag-overflow-label {
    fill: var(--status-tag-label);
    font-size: 9px;
    text-anchor: start;
    pointer-events: auto;
    cursor: default;
  }

  .dot {
    fill: var(--status-dot); /* success default */
    transition: transform .12s ease, stroke-width .12s ease, fill .12s ease;
    transform-origin: center;
    transform-box: fill-box;
    cursor: pointer;
    opacity: 1;

    &.warn {
      fill: var(--orange-2);
    }
    &.error {
      fill: var(--status-error-dot);
    }
    &.error:not(.no-notes):not(.active) {
      fill: var(--status-error-dot-soft);
    }
    &.muted {
      fill: var(--foreground-3);
    }
    &.changed {
      fill: var(--status-change-dot);
    }
    &.glitch {
      fill: var(--status-glitch-dot);
    }
    &.no-notes {
      opacity: 0.35;
    }
    &.error.no-notes {
      opacity: 1;
    }
    &.active {
      stroke: var(--status-dot-active-stroke);
      fill: var(--status-dot-active-fill);
      opacity: 1;
    }
  }

  .glitch-link {
    fill: none;
    stroke: var(--status-glitch-link);
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
  }

  .update-line,
  .update-connector {
    fill: none;
    stroke: transparent;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    pointer-events: none;
  }

  .update-line {
    stroke-width: 0.8;
  }

  .update-connector {
    stroke-width: 0.7;
  }

  .y-label {
    fill: var(--foreground-3);
    font-size: 9px;
    dominant-baseline: middle;
    pointer-events: none;
  }

  .x-label {
    fill: var(--foreground-3);
    font-size: 9px;
    text-anchor: middle;
    pointer-events: none;
  }

  .x-label-month {
    fill: var(--foreground-1);
  }

  .x-callout {
    stroke: var(--background-3);
    stroke-width: 1;
    stroke-linecap: round;
    transition: stroke 0.1s;
    shape-rendering: crispEdges;
  }

  .x-arrow {
    fill: var(--foreground-2);
    stroke: none;
  }
}

.status-chart.is-updates-mode svg {
  .dot,
  .dot.warn,
  .dot.error,
  .dot.error:not(.no-notes):not(.active),
  .dot.muted,
  .dot.changed,
  .dot.glitch {
    fill: var(--status-dot);
  }

  .dot.has-updates,
  .dot.has-updates.warn,
  .dot.has-updates.error,
  .dot.has-updates.error:not(.no-notes):not(.active),
  .dot.has-updates.muted,
  .dot.has-updates.changed,
  .dot.has-updates.glitch {
    fill: var(--status-update-dot);
  }

  .dot.active:not(.has-updates) {
    fill: var(--status-dot-active-fill);
  }

  .update-line {
    stroke: var(--status-update-marker);
  }

  .update-connector {
    stroke: var(--status-update-connector);
  }

  .update-connector.is-active {
    stroke: var(--status-update-connector-active);
  }

  .dot.has-updates.active {
    stroke: hsl(97.65deg 80.68% 33.02%);
  }

  :root[data-theme='dark'] & .dot.has-updates.active {
    stroke: hsl(79.76deg 100% 50%);
  }
}

.status-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 14px;
  line-height: var(--grid-line);
  font-weight: 700;
  color: var(--foreground-4);
  border-radius: 6px;
  padding: 0 8px;
  margin-bottom: 17px;
}

.status-label {
  color: var(--foreground-2);
  text-transform: capitalize;
  font-weight: 400;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 2px 0;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.01em;

  &::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
  }
}

.status-badge-success {
  background: transparent;
  color: var(--green-2);
}

.status-badge-warning {
  background: transparent;
  color: var(--orange-2);
}

.status-badge-error {
  background: transparent;
  color: hsl(7deg 92% 54% / 78%);
}

.status-badge-muted {
  background: var(--background-3);
  color: var(--foreground-2);
  border-color: transparent;
}

.status-notes {
  --grid-line: 24px;
  background: var(--background-1);
  border-radius: 6px;
  padding: var(--grid-line) calc(var(--side-padding) * 2);
  max-width: var(--max-line);

  h4 {
    font-size: 16px;
  }

  .status-change-marker {
    color: var(--status-change-marker-color);
  }

  .status-removed-failing-item {
    color: var(--status-removed-failing-color);
  }

  .status-removed-failing-name {
    color: var(--status-removed-failing-color);
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    text-decoration-color: var(--status-removed-failing-color);
  }

  &, p, ol, ul, summary {
    /*font-family: "IBM Plex Mono", monospace;*/
    font-size: 15px;
    line-height: 24px;
  }

  code {
    background: var(--highlight);
  }

  pre {
    border-radius: 6px;
    background: var(--highlight);
    overflow-x: auto;
  }
  pre code {
    background: transparent;
  }

  p, ul, ol, summary {
    padding-top: 0;
    margin-bottom: 12px; /* half a gridline */
    ul, ol {
      margin-bottom: 0;
    }
  }

  ul, ol {
    padding-left: 1.2em;
  }

  li {
    margin-bottom: 6px;
  }

  a {
    word-break: break-word;
  }

}

.status-artifacts {
  --grid-line: 24px;
  margin-top: var(--grid-line);
  background: var(--background-1);
  border-radius: 6px;
  padding: calc(var(--grid-line) * 0.75) calc(var(--side-padding) * 2);
  max-width: var(--max-line);

  a {
    word-break: break-word;
  }
}

.status-artifacts[hidden] {
  display: none;
}

.status-artifact-table {
  width: 100%;
  border-collapse: collapse;

  td {
    padding: 3px 0;
    text-align: left;
    vertical-align: top;
  }

  td:nth-child(2),
  td:nth-child(3) {
    text-align: right;
    white-space: nowrap;
  }
}



/* style/readme.css */
.readme {
  margin-top: calc(var(--grid-line) * 1.5);
  padding: var(--grid-line) calc(var(--side-padding) * 3.5);
  border-radius: 6px;
  background: var(--background-1);

  max-width: var(--max-line);
  margin-left: auto;
  margin-right: auto;

  @media (max-width: 800px) {
    padding: 14px calc(var(--side-padding) * 2);
  }

  &:empty {
    display: none;
  }

  h2,
  h3 {
    color: inherit;
  }

  /* increase density around paragraphs */
  p, ul, ol, summary {
    padding-top: 0;
    margin-bottom: 14px; /* half a gridline */
    ul, ol {
      margin-bottom: 0;
    }
  }

  img, video {
    max-width: 100% !important;
    height: auto;
  }

  code {
    background: var(--highlight);
  }

  pre {
    border-radius: 6px;
    background: var(--highlight);
  }
  pre.fallback {
    background: var(--background-1);
  }
  pre code {
    background: transparent;
  }

  kbd {
    display: inline-block;
    border: 1px solid var(--background-3);
    border-radius: 6px;
    line-height: 1.4rem;
    padding: 0px 4px;
    box-shadow: inset 0px -1px 0px var(--foreground-4);
    background: var(--highlight);
  }

  table {
    border-spacing: 0px;
    border-collapse: collapse;
    margin-bottom: 14px;

    tr:nth-child(2n) {
      background: rgb(from var(--background-2) r g b / 0.3);
    }

    td {
      border: 1px solid var(--background-3);
      padding: 6px 13px;
    }
  }

  .markdown-alert {
    border-left: 3px solid var(--orange-1);
    padding-left: 1em;

/*    &.markdown-alert-note,*/
/*    &.markdown-alert-tip,*/
/*    &.markdown-alert-important,*/
    &.markdown-alert-warning,
    &.markdown-alert-caution {
      border-left: 3px solid var(--red-1);
    }

    .markdown-alert-title {
      font-weight: 700;

      &:after {
        content: ':';
      }
    }
  }

  h1, h2, h3, h4 {
    position: relative;
    /* Widen the hover area:   */
    padding-left: calc(var(--side-padding) * 2);
    margin-left: calc(var(--side-padding) * -2);

    &:hover, &:focus-within {
      .markdown-anchor {
        opacity: 1;
      }
    }
  }

  .markdown-anchor {
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    bottom: 0em;
    color: var(--foreground-1);
    width: 28px;
    text-decoration: none;

    &:after {
      content: "#";
    }
  }
}


html {
  height: 100%;

  --max-content: 78rem;
  --max-line: 52rem; /* limit paragraph line length for readability at 2/3 of 78 */
  --side-padding: 1rem;
  @media (width >= 80rem) {
    --side-padding: 1.75rem;
  }

  --grid-line: 28px; /* one normal line height */

  /* while initializing search, hide package listings */
  &.initializing {
    [data-list-target='main-content'],
    [data-list-target='search-results'],
    section[name="libraries"],
    section[name="labels"],
    form[name='search'] {
      visibility: hidden;
    }
    section[name="labels"] {
      display: none;
    }
    form[name='search'] .search-shortcuts .button-group.labels {
      visibility: hidden;
    }
  }
}

body {
  background: var(--background-2);
  color: var(--foreground-1);
  margin: 0;
  padding: 0;
  transition: background .1s;
}

main {
  max-width: var(--max-content);
  margin: 0 auto;
  min-height: 44vh;
  padding: 0 var(--side-padding) 0 var(--side-padding);

  html.page-about &, html.page-installation &, html.page-docs & {
    max-width: var(--max-line);
  }
}

a {
  color: var(--orange-2);
  text-decoration: none;
  text-decoration: underline rgba(0,0,0,0);
  border-radius: 3px;
  outline-color: transparent;
  transition: color .1s ease-in-out, outline .1s ease-in-out, text-decoration-color .1s ease-in-out;

  &:hover {
    text-decoration: underline;
    text-decoration-color: inherit;
  }

  &:focus-visible {
    outline: 2px solid var(--orange-1);
  }
}

.skip-link {
  position: absolute;
  top: 0.8rem;
  left: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--background-1);
  color: var(--foreground-1);
  border-radius: 0.25rem;

  /* hide by default */
  transform: translateY(-200%);
  transition: none;
  z-index: 1000;

  &:focus-visible {
    outline-offset: 0;
    transform: translateY(0);
  }
}

summary {
  cursor: pointer;
}

svg {
  fill: currentColor;
  p > &,
  span > &,
  a > & {
    vertical-align: center
  }
}

code {
  background: var(--highlight);
  padding: 1px 6px;
  border-radius: 3px;
  overflow-wrap: anywhere;
}

pre {
  white-space: break-spaces;
  overflow-x: auto;
  background: var(--background-3);
  margin-block: 14px 14px;
  &:not(.fallback) {
    padding: 14px;
  }
  code {
    background: revert;
    border: revert;
    padding: revert;
    border-radius: revert;
    overflow-wrap: revert;
  }
}

h2,
h3 {
  color: var(--foreground-2);
}

hr {
  margin: var(--grid-line) 0;
  color: var(--foreground-3);
}

.screenreader-only {
    width: 1px;
    height: 1px;
    position: absolute;
    top: -999px;
    left: -999px;
    overflow:hidden
}

.hot {
  color: var(--orange-1);
  font-style: italic;
}

.warning {
  color: var(--red-1);
}

human-date[clickable] {
  border-bottom: 1px dotted var(--foreground-4);
  cursor: pointer;

  &:focus-visible {
    outline: 2px solid var(--orange-1);
  }
}

.clipboard-wrapper {
  position: relative;

  pre {
    transition: background .1s ease-out;
    padding-right: 6em;
    word-break: break-word;
  }

  .clipboard-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  &.copied {
    pre {
      background: var(--highlight);
    }
  }
}
.clipboard-button {
  margin: 0;
  padding: 0;
  background: transparent;

  &:hover {
    background: transparent;
    color: var(--foreground-1);
  }

  .check {
    display: none;
    color: var(--green-3);
  }

  &.copied {
    .icon {
      display: none;
    }
    .check {
      display: block;
    }
  }
}

.inline-message {
  box-sizing: border-box;
  background: var(--background-3);
  color: var(--foreground-1);
  padding: 6px 10px;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-.1rem);
  z-index: 10;
  position: absolute;
  top: 0;
  left: 0;
  max-width: calc(100vw - 1rem);

  &[aria-hidden="true"] {
    visibility: hidden;
  }
  &[aria-hidden="false"] {
    opacity: 1;
  }

  &.placed-north {
    transition: opacity .1s ease-in-out;
    box-shadow: 1px 1px 3px rgb(0 0 0 / .3);
  }
}

section {
  margin-bottom: 28px;

  &[data-list-target]:not(.readme) {
    padding-top: 14px;
    > h2:first-child {
      padding-top: 0;
    }
  }

  &[name="package"] {
    @media (width < 80rem) {
      max-width: var(--max-line);
      margin: auto;
    }
    & [id="main-content"]:focus-visible {
      outline: none;
    }
  }
}

.search-results-header {
  /* Mobile / default: evenly spaced flex layout */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 8px;

  > h2 {
    margin: 0;
    padding-top: 0;

    @media (width <= 400px) {
      font-size: 21px;
    }
  }

  .pager-page-indicator,
  .pager-range-indicator {
    color: var(--foreground-3);
    font-size: 14px;
    align-self: end;
    padding-bottom: 4px;

    @media (width <= 400px) {
      padding-bottom: 6px;
    }

    &[hidden] {
      display: inherit;  /* Ensure hidden elements still take up space */
      visibility: hidden;
    }
  }

  /* When the range indicator is hidden, keep space for it
     so the pager text doesn't jump horizontally. */
  &:has(.pager-range-indicator[hidden]) {
    & > *:not(.pager-page-indicator) {
      flex: 1 1 30%;
    }
  }

  /* Wide screens: center the page indicator with 3‑column grid */
  /* 667–1050px: only use grid when the range indicator is visible */
  @media (width > 666px) and (width <= 1050px) {
    &:has(.pager-range-indicator:not([hidden])) {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: end;
      column-gap: 1rem;

      .pager-page-indicator {
        justify-self: center;
      }

      .pager-range-indicator {
        justify-self: end;
      }
    }
  }

  @media (width <= 1050px) {
    /* On narrower screens, hide the range indicator
       in a way it doesn't take up space */
    .pager-range-indicator[hidden] {
      display: none;
    }
  }

  /* >1050px: always use the centered 3‑column layout,
     even when the range indicator is hidden */
  @media (width > 1050px) {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    column-gap: 1rem;

    .pager-page-indicator {
      justify-self: center;
    }

    .pager-range-indicator {
      justify-self: end;
    }
  }
}

.section-heading-link {
  color: inherit;
}
.card.dimmed {
  opacity: 0.8;
}
