/* glrs.dev — terminal-core, paper-and-ink TypeDoc theme */
:root,
:root[data-theme="light"],
:root[data-theme="dark"] {
  --light-color-background: #f7f5ef;
  --light-color-background-secondary: #ebe9e1;
  --light-color-background-active: #dedbd1;
  --light-color-accent: #c43a32;
  --light-color-text: #171717;
  --light-color-text-aside: #6b6962;
  --light-color-link: #c43a32;
  --light-color-focus-outline: #c43a32;
  --light-code-background: #ebe9e1;
  --dark-color-background: #f7f5ef;
  --dark-color-background-secondary: #ebe9e1;
  --dark-color-background-active: #dedbd1;
  --dark-color-accent: #c43a32;
  --dark-color-text: #171717;
  --dark-color-text-aside: #6b6962;
  --dark-color-link: #c43a32;
  --dark-color-focus-outline: #c43a32;
  --dark-code-background: #ebe9e1;
  --color-accent: #c43a32;
  --font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  --code-font: var(--font-family);
}

* { border-radius: 0 !important; }
html { font-size: 15px; scroll-behavior: smooth; }
body { letter-spacing: -0.01em; }
::selection { color: #f7f5ef; background: #c43a32; }

.tsd-page-toolbar {
  border: 0;
  border-bottom: 2px solid #171717;
  background: #171717;
  color: #f7f5ef;
}
.tsd-toolbar-contents { max-width: none; padding-inline: clamp(1rem, 4vw, 3.5rem); }
.tsd-page-toolbar a,
.tsd-page-toolbar button,
.tsd-page-toolbar input { color: #f7f5ef; }
.tsd-page-toolbar input { background: #292929; border: 1px solid #5a5852; }
.tsd-page-toolbar .title { font-weight: 800; letter-spacing: -0.07em; }
#tsd-toolbar-links { display: flex; align-items: center; gap: 0.75rem; }
#tsd-toolbar-links a { text-decoration: none; }
/* The star count is text rather than a badge image, so it can be withheld
   below a floor without a request firing for a number we would not show.
   Sized to sit level with the ci and npm badges beside it. */
#tsd-toolbar-links a[href$="/stargazers"] {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  height: 20px;
  padding: 0 0.5em;
  border: 1px solid #5a5852;
  border-radius: 3px;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

#tsd-toolbar-links a[href="https://github.com/iceglober/glorious/actions/workflows/ci.yml"],
#tsd-toolbar-links a[href="https://www.npmjs.com/package/@glrs-dev/glrs"] {
  display: inline-block;
  height: 20px;
  overflow: hidden;
  color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
#tsd-toolbar-links a[href="https://github.com/iceglober/glorious/actions/workflows/ci.yml"] {
  width: 100px;
  background-image: url("https://github.com/iceglober/glorious/actions/workflows/ci.yml/badge.svg?branch=main");
}
#tsd-toolbar-links a[href="https://www.npmjs.com/package/@glrs-dev/glrs"] {
  width: 160px;
  height: 32px;
  background-image: url("https://img.shields.io/npm/v/%40glrs-dev%2Fglrs/next?label=npm%40next&style=for-the-badge");
}

.container { max-width: none; padding-inline: clamp(1rem, 4vw, 3.5rem); }
.container-main { gap: clamp(1.5rem, 4vw, 4rem); }
.col-sidebar {
  border-right: 1px solid #c9c5bb;
  background: #ebe9e1;
  padding: 2rem 1.25rem;
}
.site-menu,
.page-menu {
  font-size: 1.05rem;
  line-height: 1.6;
}
.tsd-navigation a,
.tsd-navigation summary > span,
.tsd-page-navigation a,
.tsd-page-navigation-section > summary { padding-block: 0.4rem; }
.tsd-navigation a,
.tsd-page-navigation a { color: #6b6962; }
.tsd-navigation a.current,
.tsd-navigation a:hover,
.tsd-page-navigation a.current,
.tsd-page-navigation a:hover { color: #c43a32; }

.col-content { max-width: 76ch; padding-block: clamp(2.5rem, 6vw, 6rem); }
.tsd-typography h1,
.tsd-typography h2,
.tsd-typography h3,
.tsd-typography h4 { letter-spacing: -0.045em; }
.tsd-typography h1 { font-size: clamp(2.4rem, 5vw, 4.75rem); line-height: 0.95; border-bottom: 2px solid currentColor; padding-bottom: 0.65rem; }
.tsd-typography h2 { margin-top: 3.5rem; font-size: 1.55rem; }
.tsd-typography h3 { margin-top: 2.25rem; font-size: 1.1rem; }
.tsd-typography p,
.tsd-typography li { line-height: 1.7; }
.tsd-typography a { text-underline-offset: 0.18em; }
.tsd-typography pre {
  border: 0;
  border-left: 3px solid #c43a32;
  background: #ebe9e1;
  box-shadow: none;
}
.tsd-typography :not(pre) > code { background: #ebe9e1; padding: 0.12em 0.28em; }
.tsd-typography blockquote { margin-inline: 0; border-left: 3px solid #c43a32; background: #ebe9e1; padding: 0.8rem 1rem; color: #6b6962; }
.tsd-typography table { --color-accent: #c9c5bb; }

.tsd-navigation.settings { display: none; }
.site-menu > .tsd-navigation > a:first-child { display: none; }
.site-menu .tsd-navigation a,
.site-menu .tsd-navigation summary > span { white-space: nowrap; }
.tsd-page-navigation > .tsd-accordion-summary { align-items: center; }
.tsd-page-navigation > .tsd-accordion-summary h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 20px;
}

footer { display: none; }

@media (min-width: 1200px) {
  .container-main {
    grid-template-columns: minmax(15.25rem, max-content) minmax(0, 76ch) minmax(16rem, 1fr);
    column-gap: 1rem;
  }
  .site-menu {
    margin-right: clamp(0.5rem, 3vw, 3rem);
    padding-right: 0.75rem;
  }
  .page-menu { padding-left: 0; }
}

@media (max-width: 900px) {
  .col-sidebar { border-right: 0; }
  .col-content { max-width: none; }
}

/* The index page carries a generated outline of every document. TypeDoc then
   renders the same set again as a "Documents" member group, so the page ends
   with a second, flatter copy of its own contents. */
.tsd-panel-group:has(> summary[data-key="section-Documents"]) {
  display: none;
}
